Last active
July 29, 2024 18:01
-
-
Save rpaskin/f6edc071b1b41b43e79f6b77f0cc43e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.8.2 <0.9.0; | |
contract RedeSocial { | |
string perfil; | |
address dono; | |
function guardar(string calldata _perfil, address _dono) public { | |
perfil = _perfil; | |
dono = _dono; | |
} | |
function recuperar() public view returns (string memory _perfil, address _dono){ | |
return (perfil, dono); | |
} | |
} | |
contract Atrasagram is RedeSocial { | |
uint public idade; | |
function guardar(string calldata _perfil, address _dono, uint _idade) public { | |
idade = _idade; | |
super.guardar(_perfil, _dono); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment