Can we have a private virtual method ?
Answer Posted / nk
We can have virtual functions as long as we dont call the
function from a base pointer pointing to the base
class/derived class.
If we call then gives error.
The same error can be tested by compiling and running above
example.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is abstraction in oops?
What is the problem with multiple inheritance?
What is encapsulation with real life example?
What is difference between pop and oop?
Which language is not a true object oriented programming language?
What is encapsulation oop?
What are oops methods?
What is polymorphism used for?
Write a program to reverse a string using recursive function?
What are constructors in oop?
What is persistence in oop?
Why it is called runtime polymorphism?
What is oops?what is its use in software engineering?
What is a superclass in oop?
What are main features of oop?