2078 2

CSC378 ยท 2078 ยท 10 marks

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]

NET Centric ComputingChapter 1: Language Preliminariesstructs and enums

--- 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...