How can I access a custom class from an Activity


I’m new to Kotlin and have created a class with my data and some functions

How can I implement the class to my MainActivity in order to access the functions
from my own class

Help would be great

val class = new class2 ???