eigercs
1.0.0
Il n'y a pas encore de versions stables de la langue, mais vous pouvez toujours construire à partir de la source
class Person
let private name
let private surname
~ constructor
func new(name, surname)
this.name = name
this.surname = surname
end
func Introduction()
emitln("I am " + this.name + " " + this.surname + "!")
end
func Greet(other)
emitln(this.name + " greeted " + other.name + "!")
end
end
let px = Person("Name1", "Surname1")
let py = Person("Name2", "Surname2")
px.Introduction()
py.Introduction()
px.Greet(py)
Person("a","b").Introduction()
Ceci est un exemple très simple montrant les capacités d'OOP d'Eiger