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?

Answers were Sorted based on User's Feedback



What is the difference between Class and Structure?..

Answer / ravi kumar jain

The difference between a class and a structure is that, by
default, all of the members of a class are private and, by
default, all of the members of a structure are public.The
difference between a class and a structure is that, by
default, all of the members of a class are private and, by
default, all of the members of a structure are public.

Is This Answer Correct ?    0 Yes 2 No

What is the difference between Class and Structure?..

Answer / sharad

in c++ structure and class are same. we can use the
structure in place of class for creating the object. but
the difference is only the default access specifier of the
class is private and public of the structure.

Is This Answer Correct ?    0 Yes 2 No

What is the difference between Class and Structure?..

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

What is the difference between Class and Structure?..

Answer / nikhil jain

Structures are value types; classes are reference types.
Structures use stack allocation; classes use heap
allocation.

A structure must have at least one nonshared variable or
event member; a
class can be completely empty.

Is This Answer Correct ?    4 Yes 9 No

What is the difference between Class and Structure?..

Answer / hardik savani

The Structure ara used in c and c++
but class is used only in c++ and other opps languages

Is This Answer Correct ?    23 Yes 33 No

What is the difference between Class and Structure?..

Answer / anupam gupta

class has define object and funtion
structure has define only object

Is This Answer Correct ?    8 Yes 18 No

What is the difference between Class and Structure?..

Answer / shiva

we create an object for class.but not creating for structure

Is This Answer Correct ?    3 Yes 19 No

What is the difference between Class and Structure?..

Answer / arun

a structure is nothing but a structure.a class is nothing
but a class

Is This Answer Correct ?    2 Yes 26 No

What is the difference between Class and Structure?..

Answer / mm .mm

class can be used in other project ... but stucture can not
be used it's only present in the main

Is This Answer Correct ?    20 Yes 48 No

What is the difference between Class and Structure?..

Answer / rafat-+8801671123467

class is class and structure is structure.

Is This Answer Correct ?    6 Yes 36 No

Post New Answer

More C++ General Interview Questions

When should you use global variables?

0 Answers  


Out of fgets() and gets() which function is safe to use?

0 Answers  


What is the difference between passing by reference and passing a reference?

0 Answers  


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

0 Answers  


Explain calling an object's member function(declared virtual)from its constructor?

1 Answers  


What are the different types of polymorphism in c++?

0 Answers  


Is the declaration of a class its interface or its implementation?

0 Answers  


What is volatile and pragma? When they are used?

1 Answers  


How does code-bloating occur in c++?

0 Answers  


Explain what are single and multiple inheritances in c++?

0 Answers  


Do you know about C++ 11 standard?

0 Answers   Agilent, ZS Associates,


What is a float in c++?

0 Answers  


Categories