OOP Examples

Here are Java OOP examples for Østfold University College. All example files are located in src in their own package/folder.

These examples where made in Eclipse Neon.2

Description of packages

parents

Example of Java inheritance using extends

statisk

Example of static variables and methods

gettersAndSetters

Example of of a class with private variables that require setters and getters

basicCalc

Example of a simple calculator that adds 2 values

structure

Example of how to structure a Java document

Credits

Made by Berzy Wasfy (theberzer) and Nicolai Naglestad (nickern)