Lecture 15: Midterm Exam Review
We'll review the materials that have been posted for you.
They comprise short answer and multiple choice test items posted for your practice and that test abilities one should definitely have during the exam. They also review the essentials of what we have covered so far in the semester.
We'll also review a bit from homework 7, that's currently in progress.
Any questions you bring to class are most welcome.
Here's a brief description of abstract methods and classes, since we never summarized them in the lecture notes here. This is for your reference:
abstractmethod has no body, only a signature followed by a semicolon.
abstractmethod is automatically
abstractitself, and must be declared as such.
abstracteven if it has no
abstractmethods. This prevents it from being instantiated.
abstractclass cannot be instantiated.
abstractclass can be instantiated if it overrides each of the
abstractmethods of its superclass and provides an implementation (i.e., a method body) for all of them.
abstractclass does not implement all of the
abstractmethods it inherits, that subclass is itself