Composition

Report a typo

Please, write these two classes:

  • OperatingSystem with a single String property name.
  • DualBoot with two OperatingSystem properties primaryOs and secondaryOs.

All the properties are to support reassignment. You can use whichever default values you want.

Write a program in Kotlin
// write the classes here
___

Create a free account to access the full topic