km; ! public Car(int year) { this.year = year; km = 0; } public Car(int year, double km) { this. year = year; this.km = km; } ! public int getYear() { return year; } public double getKm() { return km; } public void setKm(double km) { this.km = km; } } class Car(val year: Int, var km: Double = 0) ! val v1 = new Car(2013) val v2 = new Car(2013, 130000) ! ! ! class Car(val year: Int, var km: Double = 0) { ! val variable1: Type ! def function1(param: Type): Type = { blablabla } }