Answer Posted / tanu agarwal
single inheritance is defined as the one in which derived
class inherits only one base class .
| Is This Answer Correct ? | 21 Yes | 5 No |
Post New Answer View All Answers
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
Where is pseudocode used?
Why do we use class in oops?
How do you use inheritance in unity?
What is an advantage of polymorphism?
What is the highest level of cohesion?
How does polymorphism work?
Why is polymorphism important in oop?
When not to use object oriented programming?
What is class and example?
which feature are not hold visual basic of oop?
What is basic concept of oop?
What is the difference between procedural programming and oops?
What is a class in oop?
Can we create object of abstract class?