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
What does oop mean in snapchat?
What is pointer in oop?
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
What is polymorphism what are the different types of polymorphism?
How long to learn object oriented programming?
What does enum stand for?
What is encapsulation example?
What is oops with example?
What is encapsulation process?
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
What makes a language oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< write a C++ program for booking using constructor and
destructor.
What is advantage of inheritance? What is object in oops?