I want to use a method I created in my first class also in the second class. Is there any possibility to use the method without creating the same one in the second class?
1 | ClassName.methodName(); |
1 2 | ClassNamr object = (ClassName)getOneIntersectingObject(ClassName.class);object.methodName(); |