Re: Prohibiting a Specific Attribute instance from being inherited!



Re: Prohibiting a Specific Attribute instance from being inherited!

From: Jim Steel <jim.steel_at_irisa.fr>
Date: Wed, 21 Jun 2006 09:42:42 +0200
Message-ID: <4498F872.9030601@irisa.fr>
I agree with Greg. Subclassing generally doesn't let you pick and choose 
which bits of the superclass you inherit.

(Without knowing the metamodel) Extract the inheritable attribute into 
an abstract superclass C and have both A and B inherit C.

Jim.




Muhammad Masoom Alam wrote:
> Is this the only solution to re-organise the hierarchy and how?
> 
> MA
> 
> Greg O'Keefe wrote:
> 
>>>I have a class A and a class B where B is the super class of class A.
>>>Class B contains an attribute att1 and an attribute att2. 
>>>The question is that how is this possible to forbid the inheritence of
>>>only att1 attribute to class A
>>>    
>>>
>>
>>Reorganise your class hierarchy?
>>
>>
>>
>>
>>To remove yourself from this list please mail puml-list-request@cs.york.ac.uk
>>with a message containing the word "unsubscribe".
>>
>>  
>>
Received on Wed 21 Jun 2006 - 08:42:49 BST