InterviewSolution
| 1. |
What Is The Difference Between Structure And A Class? |
|
Answer» STRUCTURE default access type is PUBLIC , but class access type is private. A structure is used for grouping data whereas class can be used for grouping data and methods. Structures are exclusively used for dataand it doesn’t require STRICT validation , but classes are used to encapsulates and INHERIT data which REQUIRES strict validation. Structure default access type is public , but class access type is private. A structure is used for grouping data whereas class can be used for grouping data and methods. Structures are exclusively used for dataand it doesn’t require strict validation , but classes are used to encapsulates and inherit data which requires strict validation. |
|