Implemented CocoScript virtual functions like C++