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 the purpose of enum?
Is data hiding and abstraction same?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is solid in oops?
What is polymorphism give a real life example?
What are the 3 principles of oop?
What exactly is polymorphism?
What does it mean when someone says I oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is polymorphism oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is an interface in oop? How do you answer polymorphism? Why multiple inheritance is not possible? What is encapsulation in simple terms?