For example, according the Modelio, you cannot use its "Modeling Wizard > Implement interfaces properties" to implement the interface method in Foo, because it is an abstract class:
I have yet to meet a programming language that places such a restriction. In C#, I have frequently implements an interface with an abstract class by implementing the interface methods as abstract methods.
You can still use Modelio (ver 2.2.0) to model the application of say Template Method pattern which often done with an abstract class like this
But you have to do some extra work:
- If Foo is an abstract class, change it momentarily to non-Abstract class
- Then use "Modeling Wizard > Implement Interfaces properties" feature to implement in interface method(s) in Foo
- Change Foo back to abstract class
- Add additional abstract method, including changing Bar() to abstract if that is required.
- To implement the abstract Bar2Impl() in MyFoo class, Modelio does not have a convenient way like that in BoUML. However, you can use copy-and-paste the abstract method into the implementation class and changing it to non-Abstract method.
The UML Diagrams are neat. Which diagram tool do you use?
ReplyDeleteThanks,
Pankaj
http://dev-faqs.blogspot.com
Modelio
ReplyDelete