Class and Object In Dart - Learn Dart Programming

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

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

  • @zionof37
    @zionof37 2 месяца назад

    From.🇪🇹 much love & respect

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

    Love from Bangladesh ❤️❤️❤️🇧🇩🇧🇩🇧🇩

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

    Thanks for your information

  • @codewithzaki-u
    @codewithzaki-u Месяц назад

    thanks

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

    what is the use of !? can you please elaborate?

  • @zionof37
    @zionof37 2 месяца назад

    class Home {
    String? name;
    String? address;
    int? numberOfRooms;
    void display() {
    print("the home name is $name");
    print("the home address is $address");
    print("the home numberOfRooms is $numberOfRooms");
    }
    }
    void main() {
    Home h = Home();
    h.name = "Sunshine";
    h.address = "Bole";
    h.numberOfRooms = 7;
    h.display();
    }

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

    👍👍👍👍👍

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

    ,❤️❤️

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

    main.dart
    import 'home.dart';
    void main() {
    Home home = Home();
    home.name = "Panch";
    home.address = "Pathakhati, Howly";
    home.numberOfRooms = 5;
    home.display();
    }
    home.dart
    class Home {
    String? name;
    String? address;
    int? numberOfRooms;
    display() {
    print("The Name Is :: $name");
    print("The Address Is :: $address");
    print("The Number Of Rooms Are :: $numberOfRooms");
    }
    }