task 1.2-3
This commit is contained in:
@@ -4,4 +4,6 @@ import scala.collection.mutable.ArrayBuffer
|
||||
|
||||
class Album(val name: String) {
|
||||
private var songs: ArrayBuffer[Song] = new ArrayBuffer()
|
||||
def addSong(song: Song): Unit = songs.addOne(song)
|
||||
def containsSong(song: Song): Boolean = songs.contains(song)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user