Answer Posted / jyoti lohani
the parent class behaviour & properties are define in child
class that's call inheritance. if child class inherit more
then one parent class that call multiple inheritance.
EX: class X
{
/* ---*/
}
class y
{
/*----*/
}
class z:x,y
| Is This Answer Correct ? | 1 Yes | 2 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
Explain the advantages of inheritance.
Why is abstraction needed?
What does it mean when someone says I oop?
What is polymorphism programming?
What is polymorphism oop?
Why is oop better than procedural?
What is abstract class in oop?
Which type does string inherit from?
What does sksksk mean in text slang?
Advantage and disadvantage of routing in telecom sector
What is overriding in oop?
What is methods in oop?
What is coupling in oops?
What is object in oop with example?