+ 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