Skip to content

Instantly share code, notes, and snippets.

View ogaere's full-sized avatar

Ebikekeme F Ere ogaere

  • Eresoft Ltd
  • 22:19 (UTC -12:00)
View GitHub Profile
@ogaere
ogaere / buyandsell.go
Created June 29, 2021 12:02
Tell me what is wrong with this of code
type Cement struct {
NoOfCement int
}
func (c *Cement) BuyCement(howmany int) {
c.NoOfCement += howmany
}
func (c *Cement) SellCement(howmany int) {
o.NoOfCement -= howmany