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(); }
From.🇪🇹 much love & respect
Love from Bangladesh ❤️❤️❤️🇧🇩🇧🇩🇧🇩
Thanks for your information
thanks
what is the use of !? can you please elaborate?
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();
}
👍👍👍👍👍
,❤️❤️
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");
}
}