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 switch case in c++ syntax?

1112


What is a container class?

1138


Name the debugging methods that are used to solve problems?

1081


Write a program which uses functions like strcmp(), strcpy()? etc

1094


What is late binding c++?

984


Explain how to initialize a const data member.

1122


What is atoi?

967


What are the three forms of cin.get() and what are their differences?

1232


State the difference between pre and post increment/decrement operations.

1076


Is c++ map a hash table?

1019


What is the difference between while and do while loop? Explain with examples.

1105


What are the types of array in c++?

1159


what is C++ objects?

1187


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

1042


Explain what is polymorphism in c++?

1127