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 are the types of pointer?

1034


What is a unnitialised pointer?

1013


Does improper inheritance have a potential to wreck a project?

1085


What are shallow and deep copy?

1039


What are all predefined data types in c++?

1066


What does new in c++ do?

961


How do you master coding?

986


What is virtual table?

1048


What is singleton class in c++?

984


How do you declare a set in c++?

910


How do you establish an is-a relationship?

1075


Why c++ is the best language?

1005


Which bit wise operator is suitable for putting on a particular bit in a number?

1133


Do class declarations end with a semicolon?

1026


Why do we need function?

998