Answer Posted / pratyaya kumar ghosh
C# allow redefinition of inherited methods in the derived
classes at the cost of hiding the inherited ones using new
modifier.
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
How do you define social class?
what are the different types of qualifier in java?
What is object and class in oops?
What are the components of marker interface?
Advantage and disadvantage of routing in telecom sector
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.
Why is there no multiple inheritance?
What is oops and why we use oops?
Which type does string inherit from?
What is polymorphism give a real life example?
Why do we use encapsulation in oops?
What is object in oops?
What is persistence in oop?
What is meant by multiple inheritance?
What is basic concept of oop?