Monday, March 30, 2020

Week Twelve - CST 338 - Software Design


Give an example of polymorphism and what would be inherited between classes.

Polymorphism allows the user to make changes in the method definition for derived classes and to have those changes override the software written in the base class. For example a display method in a derived class can be defined specific to its needs and variables regardless of the display definition in the base class.

After the learning this week, can you identify the difference between Abstract classes and Interfaces?  Be specific.

An interface is a set of method headings that must be defined in any class that implements it. It has no method definitions, only headings. On the other hand, an abstract class is a group of defined and undefined methods to be inherited by descendant classes.

Reflections on Week Twelve

With the current COVID-19 crisis, this has been a hectic week. The kids are home and off-schedule which makes it difficult to work until later in the night. Thankfully, I am a great night worker, so while inconvenient, this can be managed. Also, my job has become very part-time which gives me more time to help at home and spend on school. The Optical Barcode Reader assignment was intense but I didn’t have the hardest part. I want to go over the section of the assignment that I did not write so that I still have an idea of how that class works. I’m curious to see how I will do on the mid-term.

No comments:

Post a Comment