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...


c++ provides classes...and classes do what we want but why
then strcut are used...if we say data hiding... it is also
provided by c++ in structs then why to prefer clasess



c++ provides classes...and classes do what we want but why then strcut are used...if we say data h..

Answer / rasagna

resuability is the excellent concept in cpp. we can reuse
the functions many times.but in c we have not that type of
facility. classes gives redability and data security
(because of access specifier)to program. oop(object
oriented program) gives class as high in cpp.because of
inheritance,polymorphism,data independence.encapsulation.


At last what i want to say is

c + extra reatures = c++.
c + class = c++

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is difference between new and malloc?

7 Answers   emc2,


what is inline function?

3 Answers  


What is polymorphism what are the different types of polymorphism?

0 Answers  


What do you mean by binding of data and functions?

3 Answers  


1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?

6 Answers  


How to hide the base class functionality in Inheritance?

0 Answers   Viscus Infotech,


Is html an oop?

0 Answers  


What polymorphism means?

0 Answers  


Why do while loop is used?

0 Answers  


What is Hashing and how is it done? Pictorial form?

2 Answers   emc2, Wipro,


What is advantage of inheritance?

0 Answers  


How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram

0 Answers   IBM,


Categories