Difference between structure and class in c++
Answers
Answered by
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
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
Math,
5 months ago
Math,
10 months ago
Chemistry,
10 months ago
Math,
1 year ago
Social Sciences,
1 year ago