Computer Applications
A …………… variable is a common field for all the objects of a class.
- local variable
- global variable
- class variable
- instance variable
Encapsulation & Inheritance in Java
9 Likes
Answer
class variable
Reason — A class variable is a common field for all the objects of a class.
Answered By
5 Likes
Related Questions
Which type of data is not accessed in a derived class?
- Public
- Private
- Protected
- None
A private member method is only accessed:
- In the scope of the same class in which it is defined.
- Anywhere outside the class in which it is defined.
- In the derived class.
- None of the above.
Which of the following data is a separate field for all the objects of a class?
- Local variable
- Class variable
- Instance variable
- Primitive variable
Which of the following is a combination of more than one inheritance system?
- Hybrid inheritance
- Multiple inheritance
- Single inheritance
- Hierarchical inheritance