Computer Applications

Which of the following data is a separate field for all the objects of a class?

  1. Local variable
  2. Class variable
  3. Instance variable
  4. Primitive variable

Encapsulation & Inheritance in Java

14 Likes

Answer

Instance variable

Reason — Instance variable is a separate field for all the objects of a class.

Answered By

8 Likes


Related Questions