What is virtual class and friend class?
Answer Posted / govind
A virtual class is an inner class that can be overridden by
derived classes of the outer class.buti in this virtual
class cant access the privat member data and funtion .
A friend class is can access the privat member data and
function .
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
How to call a non virtual function in the derived class by using base class pointer
What does oop mean in snapchat?
What is polymorphism and example?
how to get the oracle certification? send me the answer
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
Get me an image implementation program.
What is methods in oop?
What are the 4 pillars of oop?
Templates mean
write a program to find 2 power of a 5digit number with out using big int and exponent ?
what type of questions
Why is static class not inherited?
What does <> mean pseudocode?
c++ program to swap the objects of two different classes