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


Please Help Members By Posting Answers For Below Questions

What are constructors in oop?

598


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1897


Write a c++ program to display pass and fail for three student using static member function

2819


What is stream in oop?

841


What is polymorphism in oops?

561






What is abstraction in oop?

638


What is object and class in oops?

590


Can enum be null?

588


What is overloading in oops?

598


Can abstract class have normal methods?

616


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1655


What is destructor oops?

625


What exactly is polymorphism?

612


What is difference between abstraction and encapsulation?

594


What are classes oop?

599