I want to call a method from one class to another, don\'t know if that\'s possible without extends the class that contains the method. I\'ve tried to import the package, tha
Other way may be, create object for other class and then invoke the method on that object. Something like below.
new ClassA().yourMethod();