Hi Everyone!
I was planning out some objects in a project --and planning some parental hierarchies--and stumbled across a query I have never got to the bottom of: When it comes to parents, children, and inhereted code/events, do parents or children 'overwrite' certain blocks of code or events?
From memory, a child;s code will overwrite that of its parent if it is conflicting (i.e, setting a variable within a child will overwrite any variable settings set by a parent), but I was wondering how this played out in events. For example, if I have a parent object with a 'create' event, which establishes some general variables, and then a child object also has a 'create' event, which establishes a second set of variables particular to that object, will this overwrite the parent's 'create' event and mean that the original variables are never established?
Sorry for possibly asking some basics, but I couldn't seem to find the answer in the docs page for parents, and figured I'd bring this query here!
Thanks in advance for any insight!
Kind regards,
fishfern
I was planning out some objects in a project --and planning some parental hierarchies--and stumbled across a query I have never got to the bottom of: When it comes to parents, children, and inhereted code/events, do parents or children 'overwrite' certain blocks of code or events?
From memory, a child;s code will overwrite that of its parent if it is conflicting (i.e, setting a variable within a child will overwrite any variable settings set by a parent), but I was wondering how this played out in events. For example, if I have a parent object with a 'create' event, which establishes some general variables, and then a child object also has a 'create' event, which establishes a second set of variables particular to that object, will this overwrite the parent's 'create' event and mean that the original variables are never established?
Sorry for possibly asking some basics, but I couldn't seem to find the answer in the docs page for parents, and figured I'd bring this query here!
Thanks in advance for any insight!
Kind regards,
fishfern