Class and Object In Dart - Learn Dart Programming

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 8

  • @zionof37
    @zionof37 12 วันที่ผ่านมา

    From.🇪🇹 much love & respect

  • @djsaha2005
    @djsaha2005 ปีที่แล้ว +1

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

  • @BankITOfficer
    @BankITOfficer ปีที่แล้ว

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

  • @viandaelendherlina5923
    @viandaelendherlina5923 2 ปีที่แล้ว

    Thanks for your information

  • @becborahm
    @becborahm ปีที่แล้ว

    👍👍👍👍👍

  • @zionof37
    @zionof37 12 วันที่ผ่านมา

    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();
    }

  • @khubaibirfan9215
    @khubaibirfan9215 2 ปีที่แล้ว

    ,❤️❤️

  • @optionhive
    @optionhive 10 หลายเดือนก่อน +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");
    }
    }