Class and Structure in C++.

Q28. What do you understand by a class in C++? What does a structure represent in C++?

Ans. A class is a group of similar objects.

A structure is a collection of variables of different data types referenced under one name.

Leave a Reply

Your email address will not be published. Required fields are marked *

82 Views
%d bloggers like this: