Computer Science, asked by fdoll436, 7 months ago

How the concept of structures and classes are different? Explain your answer.

Answers

Answered by uditagupta2020
12
  1. A class combines the fields and methods(member function which defines actions) into a single unit.
  2. 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