Object Expressions & Companion Objects : Kotlin Fundamentals Tutorial - Part 26

Опубликовано: 31 Май 2021
на канале: Codetutor
2,049
68

In this video we talk about Object Expressions in Kotlin. If you are coming from Java background this will look quite similar to Anonymous Inner classes in Android. Object expressions help you to extend a class without having to declare a new class. That can come in very handy to reduce number of lines of code if you want to quickly provide an implementation of a class that you are not likely to use again and again across application.

Follow me on Twitter:   / anilvdeshpande  

Git hub link to code demo: https://github.com/AnilDeshpande/Demo...

Time Line
00:00 Introduction
01:21 Demo on basic Object Expression extension
02:45 Demo on non extending Object Expression
03:25 Demo on abstract class extending Object Expression
03:48 Demo on Interface implementing Object Expression
05:37 Demo on Companion Objects


Смотрите видео Object Expressions & Companion Objects : Kotlin Fundamentals Tutorial - Part 26 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Codetutor 31 Май 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,049 раз и оно понравилось 68 людям.