A Bit on Super and Sub Classes Constructors and Finalizers
Now we revisit the Point and Circle class in slightly
stripped down form while adding features for finalizing.
First we will redevelop the Point class, then we will develop the Circle class and then we will test them. Now the code for Point.java should be copied into a new directory. // Point.java This is very basic and is the basis of our next class. |
Now we are going to extend this Point class into a subclass
called Circle.
Now the code for Circle.java should be copied into a new directory. // Circle.java Now we have started getting more developed. |
Now you want to copy the following code into a file called TestSubSuper.java in the same directory. // TestSubSuper.java Now you need to execute this java application. |