[Solved] How to use a non abstract method from a Abstract class in another class without extending


You can’t.

To call any non-static method of some class A, you need an instance of A or of a subclass of A, as such a method typically operates on data within such an instance. That’s at the very core of what “object-oriented” is all about.

In your case, A is abstract and can’t have direct instances. So the only way to call your method is to have some instance of some class B that extends A. You can either find an existing subclass that you can use, or create your own subclass.

solved How to use a non abstract method from a Abstract class in another class without extending