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

What is the standard template library (stl)?

1918


Can we use struct in c++?

1073


How does c++ structure differ from c++ class?

1185


Explain the properties and principles of oop.

1071


What is c++ hiding?

1304


Explain how to initialize a const data member.

1179


Explain the concept of dynamic allocation of memory?

1156


What does asterisk mean in c++?

1164


What is the use of endl in c++ give an example?

1214


What is null pointer and void pointer?

1122


How is computer programming useful in real life?

1122


Explain how overloading takes place in c++?

1098


Is map thread safe c++?

1132


Define stacks. Provide an example where they are useful.

1079


Is c++ a good first language to learn?

1122