I want to have a class that wraps a few functions without the need to instantiate the class itself. Therefore, I figured an abstract class is the perfect candidate for this. However, it seems that I cannot call the member functions inside an abstract class even if I add the open modifier to the functions. Example:
abstract class MyAbstractClass {
open fun showSomething() {
println("Hello World")
}
}
fun main() {
MyAbstractClass.showSomething() //Shows unresolved reference
}
Please note that I am using Android Studio 2021.1.1.Beta.4 for now. Am I understanding abstract classes wrong?