Skip to content

Instantly share code, notes, and snippets.

@doyle-flutter
Created January 29, 2024 02:47
Show Gist options
  • Save doyle-flutter/00a9f12f2a3c7de0639a387a03d9118d to your computer and use it in GitHub Desktop.
Save doyle-flutter/00a9f12f2a3c7de0639a387a03d9118d to your computer and use it in GitHub Desktop.
class01 implements
void main(){
Templete t_obj = Obj();
t_obj.a;
t_obj.func();
// t_obj.b; // err -> only Obj
}
class Templete{
int a = 0;
void func(){}
}
class Obj implements Templete{
@override
int a = 10;
int b = 20;
@override
void func() {
print("obj");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment