Skip to content

Instantly share code, notes, and snippets.

View bigbany's full-sized avatar

bigbany bigbany

View GitHub Profile
@bigbany
bigbany / generic.dart
Created April 11, 2022 15:00
about generic
void main(){
Lecture<String> lecture1 = Lecture('123','lecture1');
lecture1.printIdType();
}
// generic - 타입을 외부에서 받을때 사용
@bigbany
bigbany / interface_abstract.dart
Created April 11, 2022 14:47
interface_abstract
void main(){
BoyGroup bts = BoyGroup('BTS');
print(bts is IdolInterface);
}
abstract class IdolInterface{
String name;
@bigbany
bigbany / override_.dart
Created April 11, 2022 09:24
method oveeride
void main(){
TimesTwo tt = TimesTwo(2);
print(tt.calculate());
TimesFour tf = TimesFour(2);
print(tf.calculate());
}