Science, asked by riddhichavan2952, 2 months ago

what is difference between class and structure​

Answers

Answered by SanaArmyGirl
52

Answer:

A class is a user-defined blueprint or prototype from which objects are created. 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.

Answered by JustinSeagull23
6

Answer:

A class is a user-defined blueprint or prototype from which objects are created. 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.

Explanation:

hope this helps you :)

Similar questions
Math, 9 months ago