Book a Demo

Author Topic: Class Templates (parameterised classes)  (Read 4315 times)

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Class Templates (parameterised classes)
« on: November 30, 2023, 05:15:06 am »
The following link explains how to create a template class https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_languages/parameterisedclassestemplate.html. But it does not explain very well how to bind classes to a template.

Let’s say that I want to create a class called Vehicle with a parameter of vehicle type, how do I bind a classes representing Car, Motorcycle, and Truck. What would be the directionality between the template and the bound classes?

Please note I don’t want the Vehicle class to be an abstract class.