Skip to content

Instantly share code, notes, and snippets.

@griajobag
Created May 12, 2018 02:09
Show Gist options
  • Save griajobag/116c6630639e250471fe37f1c84f168a to your computer and use it in GitHub Desktop.
Save griajobag/116c6630639e250471fe37f1c84f168a to your computer and use it in GitHub Desktop.
inheritance
/*
* 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