Kotlin Object Declaration & Expressions | Singleton Pattern | Cheezycode #26

Поділитися
Вставка
  • Опубліковано 25 чер 2020
  • In this tutorial, learn about object keyword in kotlin and implement singleton pattern using object declaration. Learn what is object declaration and object expression in kotlin with working examples. This tutorial is part #26 of Kotlin Programming For Beginners Series. Learn Object Oriented Programming in Kotlin. Everything is explained in Hindi. Brief topics covered -
    1. What is object Keyword in Kotlin?
    2. Object Declaration in Kotlin With Example
    3. Implement Kotlin Singleton Pattern Tutorial
    3. Object Expression Kotlin Tutorial
    4. Object Oriented Programming in Kotlin
    Learn all this in Hindi (हिंदी में )
    Kotlin Beginners Tutorial Series -
    • Kotlin Beginner Tutori...
    For more info - visit below link
    www.cheezycode.com
    We are social. Follow us at -
    Facebook - / cheezycode
    Twitter - / cheezycode

КОМЕНТАРІ • 23

  • @vivekprasad1033
    @vivekprasad1033 Рік тому +1

    Superb explanation bro👍

  • @KuldeepRaoMaratha
    @KuldeepRaoMaratha 4 роки тому +1

    As Always awesome sir

  • @TheAbhidugar
    @TheAbhidugar 3 роки тому

    jese hi program load hoga toh object class bhi initialize ho jaaegi?
    object class ka instance tabhi bane jab vo first time call ho...uske liye kya karenge?

  • @johnmartin9329
    @johnmartin9329 Рік тому

    Question h bro ki agar application level p object bna diya db s data lene ka toh or agar use hi nahi hua toh object memory leak kutch problem toh na hoga aisa kutch question poocha tha interview lene wale n kutch bta saktey ho uspe

    • @CheezyCode
      @CheezyCode  Рік тому +1

      Yes - Memory leak hoga
      Reason - As soon as the application starts this object will be created in the memory, no matter what. Use this if it is really required to have the object from the very beginning.

  • @vikassingh1801
    @vikassingh1801 4 роки тому +2

    sir, how much knowledge of kotlin is required to develop android app in kotlin language....??

    • @CheezyCode
      @CheezyCode  4 роки тому +1

      Basics will be covered in this series. There is no end to learning Kotlin. There are lot many things. Will be covering the basics for Android Development

  • @sk-saidulalam9698
    @sk-saidulalam9698 2 роки тому

    how to check running services in anonymous object

    • @CheezyCode
      @CheezyCode  2 роки тому

      Context se activity manager, activity manager se running services

  • @DEVILGAMING-kc8nc
    @DEVILGAMING-kc8nc 2 роки тому

    Sir kotlin ke aur video dalo please

    • @CheezyCode
      @CheezyCode  2 роки тому

      Which topic?

    • @CheezyCode
      @CheezyCode  2 роки тому

      ua-cam.com/play/PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G.html
      This is the whole playlist... Coroutines are covered separately in different playlist

  • @sk-saidulalam9698
    @sk-saidulalam9698 2 роки тому

    how can i get Context from object class

    • @CheezyCode
      @CheezyCode  2 роки тому

      May be a setter method inside object

    • @codersaurabh
      @codersaurabh Рік тому

      Add init method in object class in application call object.init and u can use this in any fragment too , i used it for shared preference

  • @dishantpatel1278
    @dishantpatel1278 3 роки тому +1

    what is benefit of annonymus object?

    • @CheezyCode
      @CheezyCode  3 роки тому +3

      Video Mei btaya hai..short Mei btau toh ye maan skte ho...ki ek subclass nahi banana chahta - just then and there ek anonymously object banana chahta hu.
      .
      .
      Don't need to inherit a class and then override it's property and method. Using this concept I can just override the method there only.

    • @codersaurabh
      @codersaurabh Рік тому +1

      Koi bhi Android me on click ki listener adapter me try Karo

  • @muzmailhussain275
    @muzmailhussain275 Рік тому

    Your sound is too low in all lectures...

  • @komekko373
    @komekko373 3 роки тому

    Weird moan at 10:15

    • @CheezyCode
      @CheezyCode  3 роки тому +2

      Table khisakne ki awaaz hai 😂