[NEWBIE QUESTION] Getting a Parser Error in my Solidity Code

Hi all! So I’m trying to write a Smart Contract and I seem to be getting a Parser error in my code. What could I be doing wrong?

//Compiler Version
pragma solidity ^0.4.21;

//Smart Contract Interface
interface Regulator {
function CheckValue(uint amount) returns (bool);
function loan() returns (bool);


//Smart Contract Shell
contract Bank is Regulator {
uint private value;

function Bank(uint amount) {
value = amount;

function deposit(uint amount) {
value =+ amount;
function withdraw(uint amount) {
value = amount;
function balance() returns (uint) {
return value;

function loan() returns (bool) {
return value > 0;

function checkValue() returns (bool) {
if (checkValue(amount)) {
value >= amount;


//v Parser Error is here! v

contract MyFirstContract is Bank(10) {

string private name;
uint private age;

function setName(string newName) {
name = newName;
function getName() returns (string) {
return name;
function setAge(uint newAge) {
age = newAge;
function getAge() returns (uint) {
return age;


Hi @crypt0boi,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.

Let me know if you have any other questions or if I can help with anything else.