This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rectangle; | |
public class Rectangle { | |
private final int height; | |
private final int width; | |
public Rectangle(int height, int width) { | |
this.height = height; | |
this.width = width; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package line; | |
public class Point { | |
private final double x; | |
private final double y; | |
@Override | |
public String toString() { | |
return "Point{" + | |
"x=" + x + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package library; | |
public class Book { | |
private String title; | |
private String autor; | |
private String publishingHouse; | |
private int yearPublishing; | |
private int letters; | |
private int price; |