Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ NAMESPACE FluidHandlingClass
currentVolume : REAL;
END_VAR
_capacity := (currentVolume / volume) * 100;
Capacity := _capacity;
END_METHOD

METHOD PUBLIC OpenInlet
Expand Down
1 change: 1 addition & 0 deletions 06_oop_in_st/exercises/solution/src/TankWithVolume.st
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ NAMESPACE FluidHandlingInterfaces
currentVolume : REAL;
END_VAR
_capacity := (currentVolume / volume) * 100;
Capacity := _capacity;
END_METHOD

METHOD PUBLIC OpenInlet
Expand Down