Okay, so today we *tried* to look over the code from lecture 10 some more. However, we were side tracked by 4 topics "svn uses", "emacs functionality", "inheritance", and "interfaces".
Homework:
Look over the code from lecture 10 and come up with improvements
Topics for Discussion (reply for participation credit):
What is the dictionaries definition of
inherit? How does this relate to
inheritance in Object Oriented Programming? Do you think
inheritance was a good choice to describe this? Why or why not?
What keyword is used to describe
inheritance in java? What is the syntax of this keyword?
Every Class in Java
inherits from another Class. If left unspecified, what Class does it inherit from? What does it mean to inherit from this class?
We saw in class that in every Class Constructor you must invoke a Constructor from the class you
inherit. How is this done? Knowing this, what does it mean if your class has no default constructor? What if your class only has private constructors?
Some languages have
multiple inheritance. What does this term mean? Java does not allow for an class to have more than 1 super class. How does Java allow for the benefits of
multiple inheritance?
What is an
interface in Java? Why would you ever use an
interface?
Have a good weekend!