User Tools

Site Tools


java:inheritance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
java:inheritance [2021/04/02 14:19]
gthanos
java:inheritance [2022/03/11 05:21] (current)
gthanos
Line 34: Line 34:
   public int getHeight() {   public int getHeight() {
     return height;     return height;
-  } 
-   
-  int area() { 
-    return width * height; 
   }   }
      
Line 99: Line 95:
   public Point getOrigin() {   public Point getOrigin() {
     return origin;     return origin;
 +  }
 +  
 +  int area() {
 +    return width * height;
   }   }
        
java/inheritance.txt · Last modified: 2022/03/11 05:21 by gthanos