Can we have a private virtual method ?

Answer Posted / nidhi singh

no, we cann't hav private virtual method as virtual is used
in case of inheritance but private members cannot be
inherited..

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does oop mean in snapchat?

688


What is pointer in oop?

541


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1624


What is polymorphism what are the different types of polymorphism?

566


How long to learn object oriented programming?

568






What does enum stand for?

617


What is encapsulation example?

553


What is oops with example?

566


What is encapsulation process?

584


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1702


What makes a language oop?

600


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1419


write a C++ program for booking using constructor and destructor.

2055


What is advantage of inheritance?

693


What is object in oops?

617