Quote:
Originally Posted by ofer4
thanks alot
i have one more question
if for mat2 i want to create a new methods (dont want to use the inherited methods)
and for mat1 i want to use the inherited methods.
how can i implement it?
thanks
|
I think you still haven't got it... There's no inheritance in the code snippet you quoted and you can't create new operations/methods only for a specific instance (mat2) without affecting the Mat class definition (therefore, all instances will be affected).
You should really try to better explain what you'd want to achieve so we can help you better.