This program demonstrates Java's 
object oriented functionality.