what is single inheritance?

Answer Posted / karthikse09

one class derived from base class is called inheritance

Is This Answer Correct ?    51 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we override main method?

846


How oops is better than procedural?

838


Whats is abstraction in oops?

839


What is polymorphism what is it for and how is it used?

776


How can you overcome the diamond problem in inheritance?

965


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

1987


How long to learn object oriented programming?

821


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

1908


Can bst contain duplicates?

945


What is basic concept of oop?

902


What is a function in oop?

828


Why is oop better than procedural?

812


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2216


What is destructor give example?

815


What is overriding in oop?

796