Untitled

 avatar
unknown
plain_text
21 days ago
858 B
9
Indexable
public class Main {
    public static void main(String[] args){
        //Object Creation
        Staffs staff1 = new Staffs("Director", "John Waters");
        Staffs staff2 = new Staffs("Secretary", "Anastasia Yang");
        Staffs staff3 = new Staffs("Acquisition Officer", "Yujiro Takahashi");
        Staffs staff4 = new Staffs("Cataloguing Officer", "Mia Gray");
        Staffs staff5 = new Staffs("Serial Officer", "Keith Hawthrone");
        Staffs staff6 = new Staffs("Public Service Officer", "Hannah Baker");
        Staffs staff7 = new Staffs("Reception Librarian", "Trish Anderson");
        //Method Call
        staff1.displayInfo();
        staff2.displayInfo();
        staff3.displayInfo();
        staff4.displayInfo();
        staff5.displayInfo();
        staff6.displayInfo();
        staff7.displayInfo();
    }

}
Editor is loading...
Leave a Comment