Skip to content

Instantly share code, notes, and snippets.

@hakaneroztekin
Last active August 18, 2019 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakaneroztekin/d1e871733032496b11e0d91291af0ac0 to your computer and use it in GitHub Desktop.
Save hakaneroztekin/d1e871733032496b11e0d91291af0ac0 to your computer and use it in GitHub Desktop.
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