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 the difference between public, private, protected
inheritance?

Answer Posted / dee

public-->inherite the protected members as preotected in
drived class and pubic members wiull be public in derived
class

protected--->pubic and protecated members of the base class
will become protected in derived class

Private-->pubilc and proteacted members will become private
in derived class

Is This Answer Correct ?    170 Yes 48 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1084


What is a buffer c++?

995


What character terminates all character array strings a) b) . c) END

1210


How many types of comments are there in c++?

945


Define whitespace in C++.

1147


How can you create a virtual copy constructor?

1036


Explain some examples of operator overloading?

1039


How the endl and setw manipulator works?

969


What is the need of a destructor? Explain with the help of an example.

960


Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---

2047


Why c++ is not a pure oop language?

990


How a pointer differs from a reference?

1269


What is the difference between #import and #include in c++?

1060


How does the copy constructor differ from the assignment operator (=)?

1093


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1102