User Tools

Site Tools


project:week04

Inheritance and Exceptions

Lecture 1

Problem: How can an existing solution be extended to a new problem?

  • extends keyword
  • Visibility
  • Calling super constructors
  • Overriding methods
  • Polymorphism

Examples

Lecture 2

Problem: How can errors be handled?

  • Exceptions
  • try-catch blocks
  • Throwing exceptions
  • throws keyword
  • finally keyword
  • Customized exceptions

Note: Exceptions lecture might be shortened or combined with the previous lecture.

Examples

Lab

project/week04.txt · Last modified: 2010/05/11 14:50 by jtk