Skip to content

Commit

Permalink
tp4 step 3 solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ctruchi committed Feb 10, 2025
1 parent cda912a commit 6ee47ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tp4/src/main/kotlin/fmt/kotlin/fundamentals/Container.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ class Barrel(

class Tank(
capacity: Int
) : Container(capacity, 2000000..10000000)
) : Container(capacity, 2000000..10000000)

abstract class FixedSizeContainer(capacity: Int) : Container(capacity, capacity..capacity)

class Magnum : FixedSizeContainer(150)
class Bottle : FixedSizeContainer(75)

0 comments on commit 6ee47ba

Please sign in to comment.