Answer:
Answered below
Step-by-step explanation:
//This design is implemented with Kotlin.
class Equipment (val name: String,
var weight: Double,
var cost: Double,
val powerUsage: Double,
val manufacturers: String) {
fun equipmentSpecs( ){
print("Equipment is $name. It is
manufactured by
$manufacturers and costs
$cost. It weighs $weight and
usess $powerUsage amount of power")
}
}
//Driver class
class Driver{
fun main( ){
val cellPhone: Equipment = Equipment ("Samsung", 5.3, 20, 2.5, "Samsung labs")
println( cellPhone.name)
println(cellPhone.weight)
cellPhone.equipmentSpecs( )
}
}