Computer Science, asked by ankita6853, 1 year ago

what is the difference between class variable or instance variable in cimp.

Answers

Answered by vkook19
2

Static(Class) variables and instance variables both are member variables because they are both associated with a specific class, but the difference between them is Class variables only have one copy that is shared by all the different objects of a class, whereas every object has it's own personal copy of an instance ...




.












ankita6853: thanks
Similar questions