Computer Science, asked by mayank14309, 4 months ago

What are instance variable ? What are class variables?​

Answers

Answered by chintamanbhamre000
0

Answer:

Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block. Instance variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed

Answered by keya070809
0

Answer:

Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block. Instance variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed

Similar questions