+ 1

how to call non static methods that are already in abstract class inside main class static method in java?

How to generally call non-static methods inside abstract class with static methods from another class.......

1st Mar 2020, 6:36 AM
D Ģ²E Ģ²S Ģ²S Ģ²I Ģ²E Ģ²- Ģ²B Ģ²A Ģ²H Ģ²I Ģ²R Ģ²U Ģ²
D Ģ²E Ģ²S Ģ²S Ģ²I Ģ²E Ģ²- Ģ²B Ģ²A Ģ²H Ģ²I Ģ²R Ģ²U Ģ² - avatar
2 Answers
+ 1
based on my understanding from your question, you should extend the abstract class on the main class where the static method lies, then you can access the non static method from the abstract class into your static method that you want to use. but i still can't give you an accurate answer until you give more detail on your question
1st Mar 2020, 3:18 PM
Shen Bapiro
Shen Bapiro - avatar