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 Struct?

Answer Posted / talib hassan

1.Structure cannot provide the re usability but class provide the re usability of code.
2. All the members of structure are public but a class provide the several types of accessing methods.
3. structure cannot support polymorphism concept but class provide polymorphism.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c so important?

1046


What are reserved words with a programming language?

1123


What are the uses of a pointer?

1141


What is void main ()?

1060


What is the main difference between calloc () and malloc ()?

1139


What are identifiers c?

1063


What is queue in c?

1086


Between macros and functions,which is better to use and why?

2195


How can you tell whether a program was compiled using c versus c++?

1089


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

1099


Why is sprintf unsafe?

1055


What is difference between class and structure?

1103


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2122


Explain what is the benefit of using an enum rather than a #define constant?

1205


How to establish connection with oracle database software from c language?

2181