The following Modelica code corresponds to Figure 19. It has a model A with a component c1 of type C, and a model B that extends A. As a result, B inherits the component c1 from A.

Icon class
icon_class
fas fa-quote-left
icon_class_computed
fas fa-quote-left
Related content
Source
Snippet kind
Keywords
Full quote
The following Modelica code corresponds to Figure 19. It has a model A with a component c1 of type C, and a model B that extends A. As a result, B inherits the component c1 from A.

model A
C c1;
end A;
model B
extends A;
end B;
Next snippet
Related snippets
Related snippets (backlinks)
Visit also
Visit also (backlinks)