1 view
Skip to first unread message

Gagandeep Kaur

unread,
Jan 20, 2005, 1:52:57 AM1/20/05
to CppF...@googlegroups.com
hello friends
i want help regarding Polymorphism & Abstract classes. i do not have
proper understanding of these two topics.kindly sent me links where i
can find good tutorials for these topics.

Venkatesh Raja

unread,
Jan 20, 2005, 7:53:33 AM1/20/05
to CppF...@googlegroups.com
Poly - Many
Morphism - Forms

So polymorphism means, taking more than one form... for ex.

The same function name can be used for more than one function
differentiated by the parameters passed.. Function Overloading..

The operators such as <<, >>, +, - ... can be overloaded to do
addition functions.. Operator Overloading.

Virtual Functions for Run time polymorphism.. ie. The original
function that is going to be invoked is not known until the runtime..
since there may be more one function with the same name in the base
and sub classes.

Abstract classes are classes from which u cant instantiate any
object.. U can force the user to override all the functions that are
pure virtual. If there is atleast one pure virtual function, the class
becomes abstract. in this case the inheriting class should override
all the pure virtual functions.


Hope this helps...
Enjoy...

Sriramkumar

unread,
Jan 20, 2005, 9:31:07 AM1/20/05
to CppF...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages