Skip to content

nyu-java-programming/simple-inheritance-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Inheritance Example.

An example that shows some of the key concept of inheritance in object-oriented programming, including:

  • A lineage of classes, A, B, C.
  • visibility of inherited instance properties
  • Overriding of inherited classes.
  • A class D that shows composition rather than inheritance.

About

A simple example showing the basic features of inheritance and polymorphism in Java.

Resources

License

Stars

Watchers

Forks

Languages