Computer Science, asked by deepakkulal304, 2 months ago

difference between structure and classes?​

Answers

Answered by firdous41
4

Explanation:

Basically, a class combines the fields and methods(member function which defines actions) into a single unit. A structure is a collection of variables of different data types under a single unit. It is almost similar to a class because both are user-defined data types and both hold a bunch of different data types.

Answered by vasimvj27
10

Answer:

a class combines the fields and methods(member function which defines actions) into a single unit. A structure is a collection of variables of different data types under a single unit. It is almost similar to a class because both are user-defined data types and both hold a bunch of different data types.

Similar questions