خرید بک لینک

Vote count: 0

how can I get the current class in Kotlin. For example if there are the abstract class "Animal" and the child-class "Dog" (witch is a child of "Animal") how can I get the class of "Dog" in "Animal". I don't now witch classes will use "Animal"

I already tried to use:

this::class

(what could be in Java):

this.getClass()

But this method is according to my IDE not available.

Best regards

Jonas Franz

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 24 فروردين 1395 ساعت: 0:07

صفحه بندی