dcsimg
Polymorphism and Overriding
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Madhu_Kumar
Posted On:   Saturday, December 18, 2004 04:23 AM

			
What is the difference between polymorphism and overriding?

Re: Polymorphism and Overriding

Posted By:   manu_kaushal  
Posted On:   Sunday, December 26, 2004 10:13 PM

In a nutshell, polymorphism means overloading and overriding.


overloading is static( methods with same name but different signature inside a single class )( eg.):


int funtion( void );


int function( int, int );


overiding is dynamic( methods with same name and same signature in base and derived classes( eg. )


base class has a method int function( void );


derived class also has a method: int function( void );

Re: Polymorphism and Overriding

Posted By:   WarnerJan_Veldhuis  
Posted On:   Tuesday, December 21, 2004 05:47 AM

About | Sitemap | Contact