Module: Structs Enums, Exceptions, and Files

structs are b=value types that are used to encapsulate small groups that have related variables. They’re almost the same thing as classes but are more limited than classes. Structs can be instantiated without a new operator. Structs cannot default constructors but they do have constructors. Classes and structs are almost the same thing except classes are meant to model complex behavior while structs are meant to model small data structures. In the Module we also learned about Enums. Enums is a keyword used to declare enumeration: a type that consist of named constants in the enumerator list. They are mostly used with switch statements. In the module we also learned about certain errors that can happen like: exceptions. Exceptions are problems that occur during execution. Exception cause abnormal termination of the problem

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s