Skip to content

Instantly share code, notes, and snippets.

@jstasiak
Created March 27, 2012 16:13
Show Gist options
  • Save jstasiak/2217585 to your computer and use it in GitHub Desktop.
Save jstasiak/2217585 to your computer and use it in GitHub Desktop.
class A {
public string skladowaA = "a";
}
class B:A {
public string skladowaB = "b";
}
void funkcja() {
B obiekt = new B();
print(obiekt.skladowaA);
print(obiekt.skladowaB);
druga(obiekt);
}
void druga(A costam) {
print(costam.skladowaA);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment