+ 2

Class objects created in different contexts, but existing for the same class - do they work with the same data or with different

Class objects created in different contexts, but existing for the same class - do they work with the same data or with different ones? However, the objects have the same name

24th Oct 2020, 3:57 PM
suzuki san
suzuki san - avatar
1 Antwort
+ 1
A class have properties and metods, which are common for from the class created objects. The values of properties (color: blue or red) as well methods can be but different. The class is the procedure for building of its objects. And each object disposes different space of memory‘s data. Here an example: https://code.sololearn.com/cbwAWWo1vUn4/?ref=app
24th Oct 2020, 5:46 PM
JaScript
JaScript - avatar