Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is single inheritance?

Answer Posted / anjana

SINGLE INHERITANCE:
ONE BASE CLASS HAVING ONE DERIVED CLASS MEANS THAT IS CALLED SINGLE INHERITANCE.
EXAMPLE:
[A]------->BASE CLASS
|
V
[B]------->DERIVED CLASS

Is This Answer Correct ?    39 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2240


What is the renewal class?

2707


What is abstraction in oops?

994


What is encapsulation and abstraction? How are they implemented in C++?

1085


Which language is not a true object oriented programming language?

1085


Explain virtual inheritance?

1144


How does polymorphism work?

1090


How to use CMutex, CSemaphore in VC++ MFC

4748


Why do we use polymorphism in oops?

1000


Who invented oop?

1074


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

2112


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1944


What is encapsulation with real life example?

993


Why is encapsulation used?

951


Prepare me a program for the animation of train

2433