Skip to content

Commit

Permalink
tp4 step 1 solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ctruchi committed Feb 10, 2025
1 parent f44bd1c commit 1051857
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tp4/src/main/kotlin/fmt/kotlin/fundamentals/Container.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ interface Container {
val capacity: Int
}

class Barrel
class Barrel(
override val capacity: Int
) : Container

class Tank
class Tank(
override val capacity: Int
) : Container

0 comments on commit 1051857

Please sign in to comment.