NET Centric Computing207810 marksstructs and enums
Differentiate between struct and enum. Why do we need to handle the exception? Illustrate with an example with your own customized exception.
Differentiate between struct and enum. Why do we need to handle the exception? Illustrate with an example with your own customized exception.[10]
--- As per the course notes, the key differences are: Feature Struct Enum --------- Keyword struct keyword is used to declare a structure enum keyword is used to declare an enumeration Contents Can contain both data variables and methods Can only contain data types (named integer constants) Acces...