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 object in oop with example?

693


Can a varargs method be overloaded?

615


Please send ford technologies placement paper 2 my mail id

1652


What is oops and why we use oops?

569


What is difference between pop and oop?

601






What is encapsulation with real life example?

566


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1630


Why is polymorphism needed?

591


What are oops functions?

582


What is inheritance and how many types of inheritance?

614


What is the real time example of encapsulation?

590


Explain the concepts involved in Object Oriented programming.

629


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1622


Is oop better than procedural?

568


What is polymorphism in oops?

556