Re: Object Constraint Language and Inheritance
- From: "Ulrich Frank" <franku@xxxxxxxxxxxxxxxxx>
- Date: 30 Mar 2006 06:17:58 -0800
Me once again.
Achims solution looks like this:
context A
inv: self.allInstancesOf()->forall(c | c.oclIsTypeOf(A))
I question myself if that is right. A should have no subclass but a
possible subclass should be B. When I regard to object oriented
programming every B-subobject is also an A. So if you type
'c.oclIsTypeOf(A)' and c is an B-Subobject then of couse c is also of
type A. If so this would not prohibit that A cannot have subclasses.
Right?
Regards,
Uli
.
- Follow-Ups:
- Re: Object Constraint Language and Inheritance
- From: Achim D. Brucker
- Re: Object Constraint Language and Inheritance
- References:
- Object Constraint Language and Inheritance
- From: Ulrich Frank
- Re: Object Constraint Language and Inheritance
- From: Achim D. Brucker
- Re: Object Constraint Language and Inheritance
- From: Ulrich Frank
- Object Constraint Language and Inheritance
- Prev by Date: Re: Object Constraint Language and Inheritance
- Next by Date: Re: Object Constraint Language and Inheritance
- Previous by thread: Re: Object Constraint Language and Inheritance
- Next by thread: Re: Object Constraint Language and Inheritance
- Index(es):
Relevant Pages
|