Polymorphism
dose the below sentence simply describes the meaning of Polymorphism
as an example in here the reference variable is pointing to the Employee base class while at run time the method is called on the PartTimeEmployee() type correct ?
and that is polymorphisim we have a base class method in one class(type) that can have many forms in drived class and the type that the method are called from is defined at runtime
1 Reply
can any on answer me on that qustion