Answer Posted / r.r.bharti
It is an error to use both new and override on the same
member, as the two modifiers have mutually exclusive
meanings. Using new creates a new member with the same name
and causes the original member to become hidden, while
override extends the implementation for an inherited member.
Using the new modifier in a declaration that does not hide
an inherited member generates a warning.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between static polymorphism and dynamic polymorphism?
Explain virtual inheritance?
What is polymorphism and types?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
How do you answer polymorphism?
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 multilevel inheritance in oop?
What language is oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is the diamond problem in inheritance?
What is encapsulation with example?
What is byval and byref? What are differences between them?
What is object-oriented programming? Webopedia definition
explain sub-type and sub class? atleast u have differ it into 4 points?
What is the benefit of oop?