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 / prince rupela

1.Structure is Value Type. Class is a reference type.
2.Structure Contain Data Member. Class Contain Data Member And Member Function.
3.In Structure Data Members are By Default Public. In Class Data Member are By Default Private
4.Structure can not Inherit. Structure can Inherit.
5.There is no Data Hiding Feature in Structure. In Class There is Data Hiding features like Public,Private, Protected.
6.A Structure Can't Abstract . Class can.
7.Structure both use c and c++. class only c++ and oops language.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is constructor and destructor in c++?

1111


Can c++ be faster than c?

1032


What is helper in c++?

1089


What are iterators in c++?

1012


what is data abstraction in C++?

1080


Is there finally in c++?

1103


How the delete operator differs from the delete[]operator?

1097


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

1107


What does #define mean in c++?

1268


State the difference between delete and delete[].

1103


What is an operator function? Describe the function of an operator function?

1150


What sorting algorithm does c++ use?

1146


Is atoi safe?

1051


Explain the difference between using macro and inline functions?

1125


Differentiate between a constructor and a method in C++.

1048