Kotlinlearncs.online LogoJava
Return to List

Homework: String Both Ways Anonymous Class

Created By: Geoffrey Challen
/ Version: 2021.10.0

Declare a method create. create takes a single String parameter and returns an anonymous object that implements the IBothWays interface:

So, for example:

Related Lessons

Stuck? You may find these lessons helpful: