Last active
August 18, 2019 09:48
-
-
Save hakaneroztekin/d1e871733032496b11e0d91291af0ac0 to your computer and use it in GitHub Desktop.
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
class Desk { | |
private String model; | |
private String material; | |
public Desk() { // Default constructor | |
model = "wd001"; | |
material = "wooden"; | |
} | |
public Desk(String model, String material){ // Parametrized constructor | |
this.model = model; | |
this.material = material; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment