answersLogoWhite

0

When class will be used and when structure will be used?

Updated: 8/16/2019
User Avatar

Wiki User

19y ago

Best Answer

In class default members are private and in structure default members are public ,When ever you want to hide data from outside functions then you can use class.But in ANSI C we can hide data by using private access specifier.

User Avatar

Wiki User

19y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When class will be used and when structure will be used?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can the phrase class structure be used in a sentence?

The class structure of First Grade contained 18 girls and 19 boys.In a culture, class structure often keeps poor or uneducated persons from moving into a higher social class.


What is a class diagram used for in software engineering?

In software engineering, a class diagram is used for describing the structure of a system by showing classes, attributes, operations, and relationships.


What was class structure in the north based on?

Class structure in the north was generally based on wealth


What showed the democratic mood of the frontier?

the decline of class structure.


How does Christianity justify this class structure and what is the social value of these relationships?

First tell us what 'this' class structure and "these" relationships are.


What was Russia social structure?

Russia's social structure was a class structure that included a very powerful ruling class along with a limit on education that caused lower classes to be unable to advance. This social structure was a rigid hierarchy.


Wt is the different between structure and class?

A structure is a different from a class in the sense that a class can represent data elements as well as their associated functions whereas a structure can represent only data elements,, not their associated functions.


What was the social class structure like in Harappa?

the class structure was the rich people lived in bigger houses than others


Describe the class structure and gender relations in classical china?

The gender relations & class structure in classical China was that women worshipped their men and/or husbands and the class-more.


What is mesopotamia's class structure?

monarchy


What are four variables Gilbert and kahl used to develop a six-class model to reflect the class structure of the US and other capitalist countries?

Education, power, property, prestige


What are the four variables Gilbert and Kahl used to develop a six-class model to reflect the class structure of the US and other capitalist countries?

Education, power, property, prestige