CIS 3931 - Elementary Java Programming
Code Examples - Classes
TestCircle.java
- Example of simple Circle class
TestCircleWithConstructors.java
- Example of Circle class with 2 constructors
CircleWithAccessors.java
- Circle class with accessor and mutators (get and set methods)
TestCircleWithAccessors.java
- a test program for this class
TestPassingObject.java
- Example of passing an object into a method
TestCircleWithStaticVariable.java
- Circle class with static variable used
TotalArea.java
- Example using an array of objects
Mortgage.java
- A case study: class Mortgage
TestMortgageClass.java
- a sample test program for the Mortgage class
TestCountClass.java
- A case study: class Count