why Object is not created in main method?
import Car_package.*;
public class CarImportPackage {
public static void main (String[] args)
{
Car.display (777, "Ferrari");
}
}
In the above class they hav called display method frm the Car_package by using the class "Car"(which is implemented in Car_package), can anybody plz explain me tht, Why Object is not created in the main method to call "display" method? how can they use the class "Car" to call display method Instead of using Object?......plz clear my doubt.. thanking u in advance...