Skip to content

Instantly share code, notes, and snippets.

@jredh
Last active February 10, 2016 00:15
Show Gist options
  • Save jredh/5412ce857e466a2d3815 to your computer and use it in GitHub Desktop.
Save jredh/5412ce857e466a2d3815 to your computer and use it in GitHub Desktop.
Overview of the class
public class House {
private int houseBedrooms;
private int houseBathrooms;
private int houseSquareFeet;
private String houseName;
public House( int _i, String _s, String _h, int _i2, int _i3 ){
houseBedrooms = _i;
houseName = _s;
houseBathrooms = _i2;
houseSquareFeet = _i3;
}
/**
* Returns the dollar value of the House.
*/
public int appraise(){
return houseBedrooms * houseBathrooms * houseSquareFeet;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment