Title: Inheritance and Polymorphism Summary
Course: CPS 261: Advanced Java Concepts ~ DL & MM MASTER

Inheritance and Polymorphism Summary

Interfaces and Polymorphic Fundamentals

- This is meant to be a quick review of the cps161 concepts of interfaces, abstract classes, and polymorphism.
- An example is worked with the Interface called "Life"
- Review of cps161 Zoo, Animal, Cow, Horse, Snake JH exercise.

Inheritance/polymorphism Chess Game

- The following Chess video is a nice example of polymorphism. However, if you already understand polymorphism, this video doesnt really cover anything new and it is a bit long.
- Example Dumb Chess game: A more realistic example of polymorphsim. In this example, a generic piece class and a generic board class is constructed. Then the generic classes get extended with more specific classes like Rook, Queen, Bishop, etc. There are no new concepts here, but the example provides a better picture of how class inheritance and polymorphism can provide a more intuitive solution.

Last Modified: June 6, 2014 4:27 PM