Complete the code in the main method by providing an instance of the Printer class with the correct delegate from the list below (AdditionPrinter, SubtractionPrinter, or MultiplicationPrinter) so that calling the print() method would print 10 stars.
class AdditionPrinter : MyInterface {
override fun print() { for (i in 1..amount) print("*") }
override val amount: Int = 3 + 7 // 10
}
class SubtractionPrinter : MyInterface {
override fun print() { for (i in 1..amount) print("*") }
override val amount: Int = 23 - 15 // 8
}
class MultiplicationPrinter : MyInterface {
override fun print() { for (i in 1..amount) print("*") }
override val amount: Int = 3 * 4 // 12
}Hint:
Sample Output:
**********