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 are the differences between a struct and a class in
C++?

Answer Posted / ajit

In structures by default the member variables considered as
public where as in classes by default data members are
considered as private.
Structures doesn't provide the concept data encapsulation
but classes provides it.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is multimap sorted c++?

1002


Why the usage of pointers in C++ is not recommended ?

1431


What is null and void pointer?

1053


What are manipulators in c++ with example?

1058


What is the difference between structure and class?

1251


How do you generate a random number in c++?

1088


What's the order in which the objects in an array are destructed?

1401


What is #include cstdlib in c++?

1176


Which ide is best for c++?

1039


What are the various compound assignment operators in c++?

977


What is operator overloading in c++ example?

1122


What is a Default constructor?

1585


Is c++ proprietary?

1057


Should the member functions which are made public in the base class be hidden?

1026


What is the role of C++ shorthand's?

1274