0

I have a ParkingLot class and a Parkingmethod class, I write a few methods in Parkingmethod class. Now I want to call the Parkingmethod class in ParkingLot class, what should I do? Also, if I envoke one method (which calls some other methods in this class) to ParkingLot class, will other methods in Parkingmethod class be called?

public static void main(String[] args){//here is the main method in ParkingLot class

    Parkingmethod object = new Parkingmethod();
    object.start(*//Should I build a new stage here???*);
    Application.launch(args);
}

0 Answers0