Answer Posted / manish chakravarti
overloading:Two function have same name and same return type
but different type of arguments used.
overriding:Two function have same name and same arguments
used but that function defined in a base class redefined in
a derived class
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can abstract class have normal methods?
Whats is abstraction in oops?
What is the difference between static polymorphism and dynamic polymorphism?
What is protected in oop?
Why oops is important?
What does and I oop mean in text?
what type of question are asked in thoughtworks pair programming round ?
Why do we use oops?
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 are objects in oop?
What is encapsulation oop?
What are the types of abstraction?
What is balance factor?
Can we create object of abstract class?
What is multilevel inheritance in oop?