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
package main | |
import ( | |
"fmt" | |
) | |
type Cement struct { | |
NoOfCement int | |
} |
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
type Cement struct { | |
NoOfCement int | |
} | |
func (c *Cement) BuyCement(howmany int) { | |
c.NoOfCement += howmany | |
} | |
func (c *Cement) SellCement(howmany int) { | |
o.NoOfCement -= howmany |
NewerOlder