Created
May 12, 2018 02:09
-
-
Save griajobag/116c6630639e250471fe37f1c84f168a to your computer and use it in GitHub Desktop.
inheritance
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package hs; | |
/** | |
* | |
* @author androidbie.com | |
*/ | |
public class Hospital { | |
private String hospitalName; | |
private String hospitalAddress; | |
public Hospital(String hospitalName, String hospitalAddress) { | |
this.hospitalName = hospitalName; | |
this.hospitalAddress = hospitalAddress; | |
} | |
public Hospital() { | |
} | |
public String getHospitalName() { | |
return hospitalName; | |
} | |
public void setHospitalName(String hospitalName) { | |
this.hospitalName = hospitalName; | |
} | |
public String getHospitalAddress() { | |
return hospitalAddress; | |
} | |
public void setHospitalAddress(String hospitalAddress) { | |
this.hospitalAddress = hospitalAddress; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment