Encapsulation In Dart - Learn Dart Programming

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

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

  • @bohdan8557
    @bohdan8557 Год назад +1

    Wow, impeccable, subscribed... You know how to explain things.

  • @jimmorrison2657
    @jimmorrison2657 Год назад +1

    Do you know how to do data hiding with named parameters in the constructor.
    It seems that you just cannot do it, but to me that is just not good enough.
    Is there any work around?
    Thanks a lot.

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

    thanks for your videos

  • @hamidsaeed6320
    @hamidsaeed6320 Год назад +2

    Sir why do you use exclamation mark in the getter method?

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

      Because of ?, don't worry, you will learn the meaning of (!) mark on null safety section.
      dart-tutorial.com/null-safety/

  • @Trunk_Tech
    @Trunk_Tech 8 месяцев назад

    Why are not using Constractuructor while handling Encaps..... and if yes can we use it ??

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

    hello bisworaj , first of all thank you for the easy to understand tutorial , i just want to inform you that i tried to run an encapsulated code in another dart file and it worked with importing the original dart file and even without importing the original dart file where i created the encapsulation , is there an update we are missing?

  • @ສີວົງສາອີນວົງເທບ

    how can i contract you sir

  • @L-OGOScry
    @L-OGOScry Год назад

    thanks you

  • @abdurrehmanch27
    @abdurrehmanch27 2 года назад +1

    how can I contact you sir?

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

      bishworajpoudelofficial@gmail.com

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

    Thankyou sir

  • @loveleshagrahari3875
    @loveleshagrahari3875 7 месяцев назад

    class Patient{
    String name;
    int age;
    String disease;
    Patient({this.name = 'Ram',this.age = 20,this.disease = 'Sorises'});
    }
    void main(){
    Patient patient = Patient();
    final pate = patient.name;
    final age = patient.age;
    final disease = patient.disease;
    print(' Name of patient is $pate');
    print('Age of patient is $age');
    print('disease of patient is $disease');
    }

  • @loveleshagrahari3875
    @loveleshagrahari3875 7 месяцев назад

    class Person {
    String? name;
    String? planet;

    Person({this.planet = 'Earth'});
    }
    void main(){
    Person person = Person();
    final name = 'Lavlesh';
    print('My name is $name');
    print(person.planet);
    }