Changed the way function overriding is done in Class.h