Question: class Vehicle(var brand: String, var model: String, var year: Int) fun main() { val v1 = Vehicle(Ford, Mustang, 1969) // Call the function v1.drive() }

class Vehicle(var brand: String, var model: String, var year: Int) fun main() { val v1 = Vehicle("Ford", "Mustang", 1969) // Call the function v1.drive() }

in the following, the main function is calling the drive() function. Implement the drive() function that displays the "Wroooom" message

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!