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

Can a varargs method be overloaded?

616


How does polymorphism work?

635


What is pointer in oop?

533


Why is there no multiple inheritance?

565


What is difference between abstraction and encapsulation?

590






What is abstraction in oop with example?

642


Explain the concepts involved in Object Oriented programming.

629


What is debug class?what is trace class? What differences are between them? With examples.

1604


Why multiple inheritance is not possible?

596


What is object-oriented programming? Webopedia definition

717


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1636


What are the benefits of interface?

577


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1938


What is oops?what is its use in software engineering?

555


What is an interface in oop?

591