Worrying gets you nowhere
Usain Bolt
-Give an example of polymorphism and what what be inherited between classes.
When an instance of a derived class is assigned to a base class object, polymorphism allows you to call methods in the derived class as long as they override methods in the base class. If you have a base class called Car and a derived class called Toyota. A Toyota instance is assigned to an Car object.
-After the learning this week, can you identify the difference between Abstract classes and Interfaces? Be specific.
An abstract class has methods that are not defined. If the derived class doesn’t override these abstract methods, then that class will also be an abstract class.
An interface is a pure abstract class where all the methods are abstract and undefined. If a derived class doesn’t implement all these methods, then it will be an abstract class.
-Update your learning journal from what you experienced this week with class.
This week was a bit hectic for me in terms of balancing work, school, and life. With the quarantine I’ve been starting to feel like all the lines have been blurred.