Assignment is to define a class named Address.
The Address class will have three private instance variables:
Write three constructors for the Address class:
Next create a driver class named Main.java. Put public static void main here and test out your class by creating three instances of Address, one using each of the constructors. You can choose the particular address values that are used. I recommend you make them up and do not use actual addresses.
Run your code to make sure it works.
Next add the following public methods to the Address class and test them from main as you go:
This needs to be about to upload in completed Address.java and Main.java files separately or zipped together.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here