Difference between over loading and over ridding?

Answer Posted / sri

overloading means when u define more than one function with
same name but different arguments and return type.it is
compiletime allocation
overriding means when we define more than one function with
same name,same arguments.it mainly used in inheritance
concept.it is runtime allocation

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation c#?

600


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1780


What is overloading and its types?

612


What is coupling in oops?

593


What is class in oop with example?

614






What are the 5 oop principles?

595


Why do we use class?

633


what are the ways in which a constructors can be called?

1580


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1778


How do you answer polymorphism?

577


How do you achieve runtime polymorphism?

569


How oops is better than procedural?

583


What is multilevel inheritance in oop?

553


Can we create object of abstract class?

575


Who invented oop?

649