C
Cameron Frasnelly
Hi All,
I'm fairly new to this OOP and have a quick question:
I have a Work Order class that has properties that are common to all my work
orders. I then have a class that inherits from this class and adds some
properties.
I want each of these classes to have a procedure called WO_Update but I'm
not sure if I can copy the code from the original class and add to it in the
inherited class (so it updates all the original classes properties and the
added ones) or if I could have a procedure with the same name that runs the
parents procedure first (I'm not sure how I would reference this). This
function just updates all the fields in the database but I have to update
some additional fields in a different table for the inherited class. Any
thoughts on how to best accomplish this would be appreciated!! Hope that
makes sense...
Cameron
I'm fairly new to this OOP and have a quick question:
I have a Work Order class that has properties that are common to all my work
orders. I then have a class that inherits from this class and adds some
properties.
I want each of these classes to have a procedure called WO_Update but I'm
not sure if I can copy the code from the original class and add to it in the
inherited class (so it updates all the original classes properties and the
added ones) or if I could have a procedure with the same name that runs the
parents procedure first (I'm not sure how I would reference this). This
function just updates all the fields in the database but I have to update
some additional fields in a different table for the inherited class. Any
thoughts on how to best accomplish this would be appreciated!! Hope that
makes sense...
Cameron