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
Why do while loop is used?
What polymorphism means?
Can bst contain duplicates?
What is class and example?
What are the 3 principles of oop?
Why multiple inheritance is not possible?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
How do you answer polymorphism?
Whats oop mean?
What is multilevel inheritance?
write a program that takes input in digits and display the result in words from 1 to 1000
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
program for insertion ,deletion,sorting in double link list
What is encapsulation selenium?
what are the different types of qualifier in java?