Skip to content

Instantly share code, notes, and snippets.

@gyugyu90
Created October 20, 2024 03:03
Show Gist options
  • Save gyugyu90/6d090ce9dfb8a8553126e0f17fff8c5a to your computer and use it in GitHub Desktop.
Save gyugyu90/6d090ce9dfb8a8553126e0f17fff8c5a to your computer and use it in GitHub Desktop.
class MyClass {
static final CONSTANT = 1;
static void staticMethod() {
print('this is static method');
}
int instanceVariable = 2;
final finalInstanceVariable = 3;
get getterMethod => 4;
set setterMethod(int parameter) => instanceVariable = parameter;
int _privateInstanceVariable = 5;
void method() {
print('this is instance method');
}
void _privateMethod() {}
}
class Inheritance extends MyClass {}
class Implementation implements MyClass {} // missing concrete implementataions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment