Last active
April 5, 2018 05:25
-
-
Save ChaiBapchya/9f22f0275b9c9c1b24bee733f6e9f70a to your computer and use it in GitHub Desktop.
Ethereum Blockchain Solidity sample contract
This file contains 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
pragma solidity ^0.4.18; | |
contract Coursetro { | |
string fName; | |
uint age; | |
function setInstructor(string _fName, uint _age) public { | |
fName = _fName; | |
age = _age; | |
} | |
function getInstructor() view public returns (string, uint) { | |
return (fName, age); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment