So, I was trying to find the right way to get what should be a fairly simple inheritance to work (the way I want;)), and I fail. Consider this:
class Parent
{
public string name = "Parent";
public Parent() {};
public doStuff()
{
System.out.println(name);
}
}
class Child extends Parent
{
public string name = "Child";
public Child()
{
doStuff();
}
}
, , . , Java , , - - , , , , ? , , -, / . , get/sets , super(), , , .
.