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 is the difference between Class and Structure?

Answer Posted / navin

Structure: Initially (in C) a structure was used to bundle
different type of data types together to perform a
particular functionality. But C++ extended the structure to
contain functions also. The major difference is that all
declarations inside a structure are by default public.
Class: Class is a successor of Structure. By default all
the members inside the class are private.

Is This Answer Correct ?    182 Yes 55 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of pointer?

1098


Describe Trees using C++ with an example.

1154


When does the c++ compiler create temporary variables?

1044


What are the uses of c++ in the real world?

1037


What is the benefit of learning c++?

990


What is a class template in c++?

1052


What do nonglobal variables default to a) auto b) register c) static

1157


Is java easier than c++?

1028


Is c better than c++?

1067


What is the use of cmath in c++?

1071


How the endl and setw manipulator works?

1017


What is abstraction with real time example?

1152


What is abstract keyword in c++?

1074


Is swift better than c++?

947


How come you find out if a linked-list is a cycle or not?

1037