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?
ClassName.methodName();
ClassNamr object = (ClassName)getOneIntersectingObject(ClassName.class); object.methodName();