A class variable is a local variable a static variable a non

A class variable is a local variable a static variable a non-static variable None of the above

Solution

Option [A] --> Local variables are that declared in methods, constructors, or blocks of class.

Option [B] --> Class Variable type may be Static, then static variable can be used to refer the common property of all objects.

Option [C] --> Class Variable type may non-Static Variable (int/float)

ANSWER :--> [D] None of the above

Class Variable are called Instance variables and declared in a class, but outside a method, constructor or any block.

 A class variable is a local variable a static variable a non-static variable None of the above SolutionOption [A] --> Local variables are that declared in m

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site