Can we call a non-static method from inside a static method?

By ayush goel in 22 Sep 2023 | 11:34 am
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

Can we call a non-static method from inside a static method?

22 Sep 2023 | 11:34 am
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

  - Yes, you can call a non-static method from inside a static method, but you need to create an instance of the class and call the non-static method using that instance.


23 Sep 2023 | 04:15 pm
0 Likes

Report

Please describe about the report short and clearly.