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 facebook written in c++?

956


What is buffer and example?

954


Write about the role of c++ in the tradeoff of safety vs. Usability?

1025


Is c++ slower than c?

995


What is flush programming?

960


What is the difference between equal to (==) and assignment operator (=)?

1035


What is the difference between function overloading and operator overloading?

1052


Write syntax to define friend functions in C++.

1017


What is lazy initialization in c++?

1066


How many ways can a variable be initialized into in C++?

986


How does class accomplish data hiding in c++?

1134


Difference between inline functions and macros?

986


Can union be self referenced?

1077


Do you know about latest advancements in C++ ?

1175


What is a manipulator in c++?

1183