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 / anshu sharma

Structure are value types and classes are reference types.So
structures use stack and classes use heap.
Structures members can not be declared as protected , but
class members can be.
You can not do inheritance in structures.
Structures do not require constructors while classes require

Is This Answer Correct ?    158 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jump statement in C++?

1138


What are arrays c++?

1109


What is abstraction in c++ with example?

1135


Write a code/algo to find the frequency of each element in an array?

1122


What are the important differences between c++ and java?

1154


What is a string example?

1092


What is the basic structure of a c++ program?

1149


Describe the advantages of operator overloading?

1048


List the types of polymorphism in c++?

1106


What is data structure in c++?

1148


What is a node class in c++?

1073


What is class and structure in c++?

1180


What is the role of static keyword for a class member variable?

1074


Does c++ have finally?

1037


Is c++ the hardest language?

989