Class Object

 void main() {

  var a = Human();  //Creating a Class Object
var b = Human();
a.c = 5;
a.d = 10;
print(a.c);
print(a.d);

}
class Human {

var c,d;
///When the Class Object is created at that time Constructor will automatically Call
Human() { //Default Constructor
print("Class Object is Created!!");
}
}

Comments

Popular posts from this blog

Second GET API Calling with Bloc simple Example in Flutter

Stack Container Scrollable Card widget UI with Custom Widget

Pagination with Bloc Pattern in Flutter