What Happens If Non Static Members Are Used In Static Member #275
What happens if non static members are used in static member function?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 Class Members & Types - Object Oriented Programming MCQ: Member Functions - Quiz No.1.
What happens if non static members are used in static member function?
Compile time error
Runtime error
Executes fine
Executes if that member function is not used