![]() ![]() Here I have created a file named Utils.kt and declared a method that simply gives below message. kt and put the desired methods and properties in it without declaring a class. ![]() There is other way around which we can get the benefits of static in Kotlin. Yes, but there is nothing to worry about. If you have already worked with Java, you must know that static provides a way to share a single copy of method and variables among all classes using class name without creating its object but if I say.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |