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 / deepica

in classes we can declare variables and functions while in structure we can have only functions.In classes we have ACCESS SPECIFIER,while in structures we dont have any.Ic classes no Keyword is used ,while in Structures STRUCT keyword is used.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name four predefined macros.

1104


What are formatting flags in ios class?

1397


What does it mean to declare a destructor as static?

1153


What is vector string in c++?

1134


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

1121


What is the exit function in c++?

1027


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2587


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1116


What are proxy objects in c++?

1236


Difference between Abstraction and encapsulation in C++?

1209


What is anonymous object in c++?

1137


Explain how to initialize a const member data.

1082


Which is not a valid keyword a) public b) protected c) guarded

1307


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1079


What is long in c++?

1300