Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- abstract class Animal {
- void breathe(); // concept or abstract method
- void makeNoise() {
- print("Random ass animal noise");
- }
- }
- class Person implements Animal {
- String name, nationality;
- Person(this.name, this.nationality);
- @override
- void breathe() {
- print("person breathing through his ass");
- }
- @override
- void makeNoise() {
- print("person shouting 'niggeeeeeeeeeeeer'");
- }
- @override
- String toString() => "$name $nationality";
- }
- class Comedian extends Person implements IsFunny{
- Comedian(String name, String nationality) : super(name, nationality);
- @override
- void makePeopleLaugh() {
- print("Comedian licking his butthole to make people laugh");
- }
- }
- abstract class IsFunny {
- void makePeopleLaugh();
- }
- class TVShow implements IsFunny{
- String name;
- @override
- void makePeopleLaugh() {
- print("|dope ass nude scene makes people laugh");
- }
- }
- main(List<String> arguments) {
- var jenny = new Person("Jenny", "Uranus");
- print(jenny.name);
- print(jenny);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement