Ahoj, v ucebnici se najednou setkavam s "instance. "
assertEquals(ClassExample.aClassField, //tady chapu,ze ClassExample je trida
"a class field");
You can access class fields from instance objects, but the IDE may warn you, or the field
may not show up in code completion. //tuhle formulaci moc nechapu, co mysli tim instance objektu
instance.aClassField = "changed"; //jako ze muzu pole-promenou .aClassField zmenit jinou tridou nebo?? nebo co je to to instance prosim?
assertEquals(instance.pubField, "a public field");
instance.pubField = "amended public field";
assertEquals(instance.pubField, "amended public field");
Dekuji za radu