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 Ownable { | |
address owner; | |
modifier onlyOwner { | |
require (owner == msg.sender); | |
_; | |
} |
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.0; | |
contract hotel { | |
string public hotelName; | |
string public location; | |
uint public numRooms; | |
constructor(string name, string loc, uint r) public { | |
hotelName = name; |