javascript
Brief description  about Online courses   join in Online courses
View Rajeshwari  R 's Profile

Packages

I have a doubt in packages. As per the example shown in tutorials, you didn't create an object of the class Car and directly invoked the method of the class from CarImportPavkage. Can you explain how we could do that? Can we use the methods of the class without creating and object?

Asked by Rajeshwari R | Apr 29, 2014 |  Reply now
Replies (1)
View Java Teacher 's Profile
Yes, we can do using class name instead of Object.

Here we used <class_name>.<method_name>( );

May 5, 2014