``` class Product(val title: String, val descripti...
# announcements
r
Copy code
class Product(val title: String, val description: String)
class Electronics(title: String, description: String, val memory: Long) : Product(title, description)
class Clothing(title: String, description: String, val size: Long) : Product(title, description)
is there a way in Kotlin not to duplicate everytime
title: String, description: String
in child constructor? maybe something like
class Clothing(embed product: Product, val size: Long)