28: Super Keyword
contract A {
function f() { // ... }
}
contract B is A {
function g() {
// This will call function f of contract A
super.f();
}
}contract A {
string public x;
function f() { // ... }
}
contract B is A {
function g() {
// This will access the public variable x of contract A
string y = super.x;
}
}Last updated