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
Why is abstraction used?
How is class defined?
Get me a number puzzle game-program
Can we create object of abstract class?
What are the 3 pillars of oop?
What is stream in oop?
Write a program to sort the number with different sorts in one program ??
what's the basic's in dot net
Where You Can Use Interface in your Project
How can you overcome the diamond problem in inheritance?
Why is polymorphism used?
What is encapsulation with example?
What is variable example?
What is protected in oop?
what is the sylabus for priliminaries?