Computer Science, asked by SrijaniGhorai, 7 months ago

differences between instance variable and class variable​

Answers

Answered by abhinavsingh43144
2

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 Anonymous
7

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.

Explanation:

hope this helps you❤❤❤

Similar questions