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

 
week4.txt · Last modified: 2008/04/17 13:10 by bwittman
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki