Homework 2: Object Oriented Programming


Practice using data structures to build object oriented programs without using inheritance, but rather composition usage. You will need to refer to the Go documentation.


Complete the exercises in the hw2.go code file stub.

Be sure that your code is run through gofmt and compiles successfully before submitting. You will be learning many Go best practices throughout the semester that you will be expected to follow.


You should submit your hw2.go to Canvas when you are done.

NOTE: Please submit only the completed hw2.go file, nothing else.