You can extend the Book type to create a BookSales type using the extensionbase keyword.
可以通过使用 extension base 关键字扩展 Book 类型以创建 BookSales 类型。
2
The types Origin and Destination mimic the design I originally outlined in my UML diagram when I use extensionbase="Address" to show that they inherit the characteristics of Address.