import java.awt.Point;
class FourDPoint extends Point {
/**
* @param args
*/
int threeDimension, fourDimension;
FourDPoint(int x, int y, int threeD, int fourD){
super(x,y);
this.threeDimension = threeD;
this.fourDimension = fourD;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
FourDPoint fourDimPoint = new FourDPoint(5, 10, 120, 600);
System.out.println("The First Dimension is: " + fourDimPoint.x);
System.out.println("The Second Dimension is: " + fourDimPoint.y);
System.out.println("The Third Dimension is: " + fourDimPoint.threeDimension);
System.out.println("The Fourth Dimension is: " + fourDimPoint.fourDimension);
}
}
No comments:
Post a Comment