what is a virtual class?
Answer Posted / ritesh parkhi
Virtual class in a part or used to implement Runtime
polymorphism.Through it dynamically we can access a class or
method of that class.With use of Pointer to base class we
can implememt it.We try to access object of any class
without regarding their class.We are passing object address
in this base class pointer to access a particulat method of
a class at runtime.
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
How many human genes are polymorphic?
What is multilevel inheritance?
What polymorphism means?
What are oops methods?
Can abstract class have normal methods?
What are the 3 pillars of oop?
Why polymorphism is used in oops?
What is interface? When and where is it used?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
Write a c++ program to display pass and fail for three student using static member function
Whats oop mean?
Give two or more real cenario of virtual function and vertual object
What is abstraction encapsulation?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Can we create object of abstract class?