answersLogoWhite

0


Best Answer

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:
User Avatar
Study guides

What is a programming language

What does DOS stand for

What is a software that is distributed for free

What is application software

โžก๏ธ
See all cards
3.78
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
32 Reviews

Add your answer:

Earn +20 pts
Q: Difference between structures and class
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.


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 strings and string arrays?

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


What is the difference between abstract class and final class?

20


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

An object is an instance of a 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 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

People also asked