answersLogoWhite

0


Best Answer
Copy

Structure members are public by default while class members are private by default. Classes encapsulate the data and the methods that operate upon that data into a discrete package (an object), exposing only as much or as little interface as is required by the class itself, to ensure the data remains in a valid state at all times. Structures have no such protection.

User Avatar

Wiki User

โˆ™ 2012-05-22 01:31:04
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Add your answer:

Earn +5 pts
Q: Difference between structures and class?
Write your answer...
Submit

Related Questions

What is difference between structure and Class in CPP?

members defined in structures are public by default and in class its private.class can have member functions which operate on those data members but structures have only data members


What is the difference between a building and a structure?

All buildings are structures but not all structures are buildings


Difference between c plus plus class and c structures?

A C struct can contain only data; a C++ class can contain both data and functions.


What is the difference between Lewis dot structures and Lewis structures?

These are synonyms.


Difference between first class and first class ac in railways?

No much difference between first class and first class ac. Only AC is the difference. First class does not have AC.


What's the difference between the Class 365 and Class 465 466?

The difference between the Class 365 and Class 465, 466 is basically the cost.


Difference between exclusive or inclusive class intervals?

difference between inclusive and exclusive class interval


What is difference between first class and second class on train trips?

What is the difference between buying a 1st class and a 2nd class ticket on the train in England?


What is the difference between a class What is the difference between a class III and class IV hitch and?

class III rated for up to 5,000lbs, class IV is rated for up to 10,000lbs towing capacity


What is the difference between strings and string arrays?

What is your understanding of structures? Discuss how structures work in programming


What is the What is the difference between class and object?

An object is an instance of a class


What is the difference between abstract class and final class?

20


What is the difference between class c and d felonies?

i need to know the difference between class c and d felonies please


Difference between Mercedes e class elegance and classic?

What is the difference between Mercedes Benz E class 'Elegance'and classic


What is the difference between man made and natural structures?

man-made structures were made by humans, but natural structures made itself.


What is the difference between classes of IP addresses?

difference between ip address and class


What is difference between A-class and B-class pipe?

Pipe ERW black pipe class -B And Class-C difference.


What is the difference between class intervals and class width in statistics?

NONE


What is the difference between a first class and a second class lever?

thanks


Difference between class 1 and class 2 preservatives?

znd


What is the Difference between b and c class MS pipe?

The main difference is the thickness of the pipe Compare to A Class pipe B Class pipe thickness is more.Like that Compare to B class pipe C Class pipe thickness is more.


What is the difference between socioeconomic status and social class?

i think there is no difference between two concepts.


What is the difference between natural and built structures?

the difference is that natural forces are forces that are created by the enviorment and built structures are not they are built by people #if you bleave in god he will tell you


What is the difference between homologous analogous and vestigial structures?

pickles :3


What is the diffrenece between first and second class proteins?

what is the difference between first and second class proteins