eigercs
1.0.0
아직 언어의 안정적인 릴리스는 없지만 여전히 소스에서 구축 할 수 있습니다.
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()
이것은 Eiger의 OOP 기능을 보여주는 매우 간단한 예입니다.