Can we have a private virtual method ?
Answer Posted / edward
yes... we can have private virtual method and will not give
any compile time/runtime error. but there is no use of it.
we could not call the method from out side of the class
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is an example of genetic polymorphism?
What are the components of marker interface?
What is the diamond problem in inheritance?
What is inheritance and how many types of inheritance?
What is the importance of oop?
What is the example of polymorphism?
what is difference between class template and template class?
Why do we use encapsulation in oops?
What is oops in programming?
What is class encapsulation?
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?
Why multiple inheritance is not allowed?
What is abstraction in oops?
What is abstraction example?
What is destructor oops?