Answer Posted / $rav$...
OVERLOADING:-Principle of overloading is achieved through
polymorphism .we can have any number of methods with the
same name but the difference in the signature(:parameters ).
OVERRIDING:-Principle of overriding is achieved through
inheritance.we can have any number of methods with same
name,parameters and signature but the rewriting of the code
of the super class method in the subclass is done and we
give the new functionality to that method of keeping its
signature as the same.
dynamic binding prevails in overriding.inheritance is
compulsory.
static binding prevails in overloading.
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Why do we need oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is the highest level of cohesion?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is the importance of oop?
What is polymorphism what are the different types of polymorphism?
What is protected in oop?
What are two types of polymorphism?
What are properties in oop?
What is oops and its features?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What does oop mean in snapchat?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is difference between inheritance and polymorphism?
What is polymorphism and example?