Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package punto;
- public class Document {
- private String name;
- private int sheet;
- private String size;
- private int copies;
- private String preferences;
- public Document(String name, int sheet, String size, int copies, String preferences) {
- this.name = name;
- this.sheet = sheet;
- this.size = size;
- this.copies = copies;
- this.preferences = preferences;
- }
- public Document() {
- }
- @Override
- public String toString()
- {
- return "Nombre documento: " + name + "\nHojas:"+ this.sheet+ "\nHojas totales: "+ (this.sheet*this.copies) + "\nTamaño: " +size + "\nCopias: " + this.copies + "\nPreferencia: " + preferences;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public int getSheet() {
- return sheet;
- }
- public void setSheet(int sheet) {
- this.sheet = sheet;
- }
- public String getSize() {
- return size;
- }
- public void setSize(String size) {
- this.size = size;
- }
- public int getCopies() {
- return copies;
- }
- public void setCopies(int copies) {
- this.copies = copies;
- }
- public String getPreferences() {
- return preferences;
- }
- public void setPreferences(String preferences) {
- this.preferences = preferences;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement