TypeScript Basics 15 - Interfaces and Duck Typing

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 17

  • @davezima4167
    @davezima4167 Год назад

    Yet another very good tutorial. Thank you.

  • @Asilence
    @Asilence 5 лет назад

    The last section about it matches the structure means it is complient was a great clarification

  • @CesarGuerreroDev
    @CesarGuerreroDev 5 лет назад +2

    You explain everything so clearly! Thank you so muchhhh!!!

  • @pedrocardoz0
    @pedrocardoz0 2 года назад

    Incredible !!!!

  • @hyperborean72
    @hyperborean72 4 года назад

    Amazing - language and tutorial

  • @monsterhuntergo
    @monsterhuntergo 2 года назад

    In Java, variables should be static and final in interface.

  • @tonganzhao621
    @tonganzhao621 6 лет назад +1

    Very helpful, thanks a lot!

  • @JamesJ30t
    @JamesJ30t 3 года назад

    @JavaBrains --- I get the error related to the greet method from the Person definition in the classes.ts file.

  • @alokkharbas7430
    @alokkharbas7430 6 лет назад

    Gr8 Work ... Thanks !!!

  • @manjish19
    @manjish19 6 лет назад

    Thanks, Kaushik, your lectures are always insight full. I was just wondering are you using some kind of plugin to make you editor(VS Code ) to change its appearance( terminal headings are coloured, arrow function looks different) or it is some settings. Could you please tell how you are doing this.

  • @antongrekov1879
    @antongrekov1879 4 года назад

    Why would you define types for properties inside your class that implements interface Person ? Isn't one of things that we use interfaces is to conveniently define types of object method/fields ?

  • @singhkumardev
    @singhkumardev 6 лет назад

    reat work!!!! thanks a lot

  • @balaguru4375
    @balaguru4375 5 лет назад

    Hey Bro I followed up your tutorials.It was easy to learn..In this interface and duck typing i fed up with some errors
    "'=' can only be used in an object literal property inside a destructuring assignment.
    15 firstName='test',
    ~
    interface.ts:16:5 - error TS2304: Cannot find name 'ln' ."
    this is the error please can you tell me about this error?

  • @alexop5919
    @alexop5919 2 года назад

    JS + TS = Java