This commit is contained in:
Mert Gör 🇹🇷 2024-01-20 18:24:00 +03:00
parent 6514c53747
commit 60e4f7a88d
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F

View File

@ -12,7 +12,12 @@ func (c customer) save() {
fmt.Println("Has been added : ", c.firstName, c.lastName,c.age) fmt.Println("Has been added : ", c.firstName, c.lastName,c.age)
} }
func (c customer) update() {
fmt.Println("Updated : ", c.firstName, c.lastName, c.age)
}
func Demo2() { func Demo2() {
c:= customer{firstName: "Engin", lastName: "Demiroğ", age: 35} c:= customer{firstName: "Engin", lastName: "Demiroğ", age: 35}
c.save() c.save()
c.update()
} }