Skip to content

Instantly share code, notes, and snippets.

View Rillwz's full-sized avatar
:octocat:

Yusril Ihsanul Alim Rillwz

:octocat:
View GitHub Profile
class Hero extends Character {
String hitMonster() {
return 'Take this..!';
}
}
!------------------------------------------------------
mixin DrinkAbility on Hero{
String drink() => 'gluk...gluk...gluk...';
abstract class FlyingMonster {
String fly();
}
abstract class SwimingMonster {
String swim();
}
abstract class Monster extends Character {
String eatHuman() {
return 'Grr.. Delicious ..';
}
// Implementasi Abstract Class
// Abstract_Class_Pointer = Name of abstract_Class
abstract class Bicara{
void say();
}
class HelloWorld Extends Bicara {
@override
void say() {
print('something');
}