Created
November 20, 2017 04:13
-
-
Save nwillc/40415b6b89ff52ddfecf6422112d2af7 to your computer and use it in GitHub Desktop.
A Company
This file contains hidden or 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
public class Company { | |
private final String name; | |
private Integer revenue; | |
public Company(String name, Integer revenue) { | |
this.name = name; | |
this.revenue = revenue; | |
} | |
public Integer getRevenue() { | |
return revenue; | |
} | |
public void setRevenue(Integer revenue) { | |
this.revenue = revenue; | |
} | |
public String getName() { | |
return name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment