Classes
Not implemented in the compiler yet
The class definition keyword is school
.
Standard form:
school <IDENT> {
# Parts of the class
}
The constructor member function name is cooK
.
The destructor member function name is snoRt
.
Constructors and destructors have the bar
function modifier by default.
Standard form
school myClass {
callmeonmycellphone cooK() {
# Constructor
}
callmeonmycellphone snoRt() {
# Destructor
}
}
Feilds
- Fields are placed at the top of the class.
- They are private by default.