Ok, I've been exposed to OO programming for a while but only in the sense of staring at code trying to understand what's going on. My programming experience is more inline with the old C language.
This whole Class thing is starting to click in my head now thanks to Unreal and the mega amounts of information about darned near every aspect of the engine.
So, while cruising through some of the actor classes inside the editor, I've noticed more than a few subclasses that contain only the 'class NewSubClass extends ParentClass;' line. I know now that this new subclass contains all the properties of the parent class. Now here is my question concerning these specific 'one-liner' subclasses: Are these sub classes only made subclasses because their default properties differ from the default properties of it's parent class?
To clarify by example:
Of course you'd not have to add the default properties inside the code because you can change those via the 'Default Properties' dialog you get when you right click on the class list in the editor.
I know this sounds so obvious but confirmation will definitely aid my understanding to the point where I might actually be able to, finally, code something.
Perhaps there are other people that lurk these boards that are on the verge of understanding, like myself, and just need a switched turned on.
Thank ya
This whole Class thing is starting to click in my head now thanks to Unreal and the mega amounts of information about darned near every aspect of the engine.
So, while cruising through some of the actor classes inside the editor, I've noticed more than a few subclasses that contain only the 'class NewSubClass extends ParentClass;' line. I know now that this new subclass contains all the properties of the parent class. Now here is my question concerning these specific 'one-liner' subclasses: Are these sub classes only made subclasses because their default properties differ from the default properties of it's parent class?
To clarify by example:
Code:
class redLight extends Light; defaultproperties { LightBrightness=255 LightHue=255 LightSaturation=127 }
I know this sounds so obvious but confirmation will definitely aid my understanding to the point where I might actually be able to, finally, code something.
Perhaps there are other people that lurk these boards that are on the verge of understanding, like myself, and just need a switched turned on.
Thank ya
Comment