Assuming you are using Java.  Here is my take on this:
 
1) You have a base class, say B and a derived class, say D.
2) Like Ajit said, you could see the base class operations in the Operations tab of the class D specification with the checkbox "Show Inherited" checked on.
 
This is correct, since from D you could get to any of the operations in B.  However, that does not necessarily mean that it should display the operations of B in D either in the Browser View or in the Class Diagram.  These operations are not part of D except that you could use them in D.
 
So, if you want to change the implementation of any of these operations in D, you want the skeleton code of these operations to be placed in the D.java file.  To do this, you would have to add the operation explicitly in D with the same signature as in B.
 
3) On the other hand, you have these operations in B and each of those operations have the generic functionality. And you would always want to override the implementation of these operations in the derived class.  Then, you would want to make those operations abstract as well as the class abstract.  If you do that Rose will show the operations in the Derived class also.
 
For example in either Rose 2001 or Rose 2001A, follow these steps to do this:
 
1) Create a Base class -> B.
2) Make the B an abstract class.
3) Create an operation/method in B -> op1().
4) Make the op1() as an abstract operation/method.
5) Create a class -> D.
6) Have D derive from B.
7) Generate the code for D.
8) Now, you should see the op1() displayed in the class D.
 
Hope that helps and if I am totally off the track, I apologize.
 
--Sonny
 
 
 -----Original Message-----
From: Chandran, Ajit [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 6:07 AM
To: 'Kumar'; Rational
Subject: (ROSE) RE:

Did you verify if you have the 'Show inherited' checkbox ticked in the 'Operations' tab of class specification?
-----Original Message-----
From: Kumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 10:37 PM
To: Rational
Subject:

Hi,
 
Some problems my team faced with Rational :
 
1) When we derive a class from some base class in the model, it does not show the methods of the base class.
2) when a class is implementing the interface , them the methods of the interface are not shown in the derived class.
 
 
pls.comment
 
 
Regards,
 
Kumar

Reply via email to