Skip to content

Commit

Permalink
tp3 step 2 solution
Browse files Browse the repository at this point in the history
  • Loading branch information
ctruchi committed Feb 7, 2025
1 parent 7dff1b5 commit 68d61cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tp3/src/main/kotlin/fmt/kotlin/fundamentals/Cellar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package fmt.kotlin.fundamentals
class Cellar(
private val barrels: MutableList<Barrel>
) {
constructor(nbBarrels: Int): this(generateBarrels(nbBarrels))

val totalBarrels: Int
get() = barrels.size

Expand Down

0 comments on commit 68d61cd

Please sign in to comment.