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 / ramesh.alavala

class provides data hiding,structures doesn't provide.
class support polymorphism,structures doesn't support.
classes by default are inherited by privately,structures are
inherited by publicly.
classes can be abstract, structures can't be abstract.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c++ support exception handling?

1069


Describe new operator?

1163


What is a stack? How it can be implemented?

1169


What is the use of this pointer in c++?

1009


total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.

2585


What is math h in c++?

1179


List the special characteristics of constructor.

1181


How can we read/write Structures from/to data files?

1135


How do you write a function that can reverse a linked-list?

1114


What is a template in c++?

1859


the first character in the variable name must be an a) special symbol b) number c) alphabet

1099


Show the declaration for a pointer to function returning long and taking an integer parameter.

1146


What is ios in c++?

1222


What is the advantage of c++ over c?

1032


When there is a global variable and local variable with the same name, how will you access the global variable?

1103