This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Abstract class in UML

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am using MyEclipse IDE for drawing UML Diagrams .

I can't find any difference between a abstract class and a normal class in UML .

Please let me know how can we identify an Abstract class in UML .
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should explain first that from the UML metamodel, isAbstract in an attribute of Classifier. Class extends Classifier.

The following is quoted from the UML 2.2 Superstructure specification:
The name of an abstract Classifier is shown in italics.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abstract in an attribute of Classifier. Class extends Classifier.


I did not understand what did you meant by the above line .Please tell me .

The name of an abstract Classifier is shown in italics.
Is this the only way to identify an abstract class ??


 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravi Kiran V wrote:
Abstract in an attribute of Classifier. Class extends Classifier.


I did not understand what did you meant by the above line .Please tell me .

I was talking about UML metamodel, Class as a UML element extends from Classifier and Classifier contains Abstract attribute.

Ravi Kiran V wrote:
The name of an abstract Classifier is shown in italics.
Is this the only way to identify an abstract class ??

From what the specification mandates, yes. But if you want to make it more clear you can create "abstract" stereotype and apply to abstract classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic