March 28, 2024, 09:06:50 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Help With Classes

Started by Zen, December 16, 2005, 05:31:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zen

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

Parker

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.

Zen

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