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


Please Help Members By Posting Answers For Below Questions

What is destructor give example?

608


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1837


What language is oop?

597


What is encapsulation in ict?

608


What do you mean by overloading?

585






What is a function in oop?

633


How do you answer polymorphism?

578


Are polymorphisms mutations?

703


What do you mean by Encapsulation?

645


Whats is abstraction in oops?

593


What is pointer in oop?

541


What is the difference between procedural programming and oops?

559


How many human genes are polymorphic?

577


What is the important feature of inheritance?

637


How to call a non virtual function in the derived class by using base class pointer

5278