what is single inheritance?

Answer Posted / jasbir singh

when a single class is being inherited by a class, it is
called single or simple inheritance.

example:

class a
{
public:
int x,y;
};
class b: public a //// example of simple inhieritence
{
public:
int z;
}

Is This Answer Correct ?    91 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the importance of oop?

869


What is the use of oops?

827


Can private class be inherited?

948


What language is oop?

800


What is difference between polymorphism and inheritance?

843


What is oops and its features?

860


Can a varargs method be overloaded?

844


What are the two different types of polymorphism?

922


What is encapsulation process?

807


What is difference between oop and pop?

905


Why do while loop is used?

805


What is polymorphism and example?

807


Why polymorphism is used in oops?

815


What is meant by multiple inheritance?

973


What is inheritance write a program to show use of inheritance?

913