270 likes | 368 Views
Note: Add a default constructor. public Employee (){ number =0; name=“”;}. Note: The default constructor is called as the first statement in the subclass constructor. Include this part in the subclass constructor. in branNA : String. in bankNA : String. Note:
E N D
Note: Add a default constructor public Employee (){ number =0; name=“”;} Note: The default constructor is called as the first statement in the subclass constructor
in branNA: String in bankNA: String
Note: supercan be used to access the supers class methods and attributes. For example: super.getName(); super.accNumber;