Computer Science, asked by arpatelzoya342, 10 months ago

Difference between structure and class in c++

Answers

Answered by sankarmajumder1861
0

Explanation:

The main difference between structures and classes is that by default all members of the structure are public whereas by default all the members of the class are private.

hope it helps you

Answered by AskewTronics
0

Difference in structure and class:

Explanation:

  • Structure: The Structure is used to holds the collection of data or variables which are of a different type. It means that it is used to collect the data member only.
  • Class: The class is also a user define data type but it is used to collect the function member, data member and the other class (which is said to the internal class).

Learn More:

  • C : https://brainly.in/question/637147
Similar questions