Universidad Carlos III de Madrid

Ingeniería de Telecomunicación

Enero-Mayo 2010 / January-May 2010

Object-Orientation & Inheritance

Lecture Section Session 5 (lecture): Object-Orientation & Inheritance (III)

Slide Section Slides

pdf

Readings SectionReadings

Homework Section Homework

  • Review slides

  • Read from textbook

  • Answer the following questions:

    • What are interfaces?

    • How can you achieve "Multiple Inheritance" in Java?

    • What are abstract classes, abstract methods?

    • What’s the difference between an interface and an abstract class?

    • You can create an abstract class that contains only abstract methods. On the other hand, you can create an interface that declares the same methods. So can you use abstract classes instead of interfaces?

    • Do exercise 7 of Chapter 8 (Interfaces and Inner Classes) of Thinking in Java.

Additional Resources SectionAdditional Resources