what is a virtual class?
Answer Posted / raj
In multiple inheritance when a class D is derived by two
base classes B and C and both base class is also inherite
by same class A then then class D will get duplicate copy
of uppper most base class A.In this case class A will
declare as virtual class
Is This Answer Correct ? | 41 Yes | 5 No |
Post New Answer View All Answers
Why multiple inheritance is not possible?
How can you overcome the diamond problem in inheritance?
What are the benefits of oop?
What is oops and its features?
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.
class type to basic type conversion
#include
What are properties in oop?
Which language is not a true object oriented programming language?
What is the difference between abstraction and polymorphism?
What is solid in oops?
What is overloading in oop?
What is encapsulation process?
What is the problem with multiple inheritance?
Why do we use class in oops?