Você está na página 1de 1

I used class concept to create all classes: Hall, Exhibition_Hall, Records, Role and

booking Class.
In addition to use inheritance concept to make Exhibition_Hall Class inherited from Hall

Class

public class Exhibition_Hall extends Hall

I used polymorphism (Override) concept by create some functions: o public void setHallno(int _number) o public int getHallno() o public void setFloor(int _floor) o public int getFloor()

o public void setareaName(String _areaname) o public String getareaName() I used protected data members concepts in Hall class Protected data member can be used just from the same class or subclasses related to the super-class o protected int hallNumber; o protected int floor; o protected String areaName;

Você também pode gostar