Use case generalization versus extension

后端 未结 3 978
夕颜
夕颜 2020-12-25 13:05

UML Use Case Diagrams allow for two seemingly equivalent ways to show that a given use case might be realised in several different ways namely use case generalizations as op

3条回答
  •  醉酒成梦
    2020-12-25 13:44

    An example of an extension would be an "Enter Discount Code" use case. Entering a discount code has to do with making a payment, but you don't have to enter one in order to make the payment.

    You can look at the "is a" relationship to make the determination of which to use. Pay by PayPal "is a" make payment, a specific way of making a payment. Enter discount code isn't. It's something additional you can do while making a payment.

提交回复
热议问题