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 / suresh ghosh

1.class by default used private access specifier but structure used public.
2.class is reference type but structure is value type.
3.class used stack algorithm but structure used heap algorithm.
4.structure don't used public access specifier.
5.class used inheritance but structure don't.

Is This Answer Correct ?    14 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is type of 'this' pointer?

1062


Give an example of run-time polymorphism/virtual functions.

1004


Write a program which uses functions like strcmp(), strcpy()? etc

1099


Define basic type of variable used for a different condition in C++?

1124


Is ca high or low level language?

1082


Define a nested class. Explain how it can be useful.

1082


What is the use of c++ programming language in real life?

1051


Write about an iterator class?

1079


Explain the isa and hasa class relationships. How would you implement each?

1129


What do you mean by ‘void’ return type?

1056


How do you establish an is-a relationship?

1153


Can you explicitly call a destructor on a local variable?

1028


How would you use the functions randomize() and random()?

1076


What is an adaptor class in c++?

1178


Which compiler does turbo c++ use?

1074