IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Zen on December 16, 2005, 05:31:24 PM

Title: Help With Classes
Post by: Zen on December 16, 2005, 05:31:24 PM
Just a quick one as i dont think understanding still.

Are normal class methods, when inherited by a child class alowed be overwritable like a virtual function is?

At the moment i am thinking that normal class methods are inherited but cannot be changed and virtual functions can be overriden.

Lewis
Title: Re: Help With Classes
Post by: Parker on December 16, 2005, 05:58:41 PM
Only virtual functions can be overridden. That's because virtual functions are called through a pointer that can be changed. The actual function isn't changed, the pointer is just changed and a new function is created. That's why you can use the !! operator.
Title: Re: Help With Classes
Post by: Zen on December 16, 2005, 07:06:32 PM
Hmm i thought that was right. but i seemed to of overwritten a normal function today. Maybe its just with it not been finished yet.

Lewis