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

Published: 31 May 2021
on channel: 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


Watch video Object Expressions & Companion Objects : Kotlin Fundamentals Tutorial - Part 26 online without registration, duration hours minute second in high quality. This video was added by user Codetutor 31 May 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,049 once and liked it 68 people.