You are on page 1of 2

pragma solidity ^0.4.

0;

interface Regulator {
function checkValue(uint amount) returns (bool);
function loan() returns (bool);

contract Bank is Regulator {

uint private value;


function Bank(uint amount){

value=amount;

}
function deposit(uint amount){

value=value+amount;

}
function withdrawl(uint amount){

value=value-amount;

}
function balance() returns (uint){

return value;

}
contract mycontract is Bank(10) {

string private name;


uint private age;

function setName( string name1) {

name=name1;
}

function getName() returns (string) {

return name;

function setAge(uint age1){

age=age1;

}
function getAge() returns (uint){

return age;

}
function loan() returns (bool){

return true;

You might also like