Created
October 20, 2024 02:51
-
-
Save gyugyu90/e0b26bcebfeadd4ed2b76012fbd9df40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Feed { | |
void onClick(); | |
} | |
class PostFeed implements Feed { | |
@override | |
void onClick() { | |
print('show tags'); | |
} | |
} | |
class ReelsFeed implements Feed { | |
@override | |
void onClick() { | |
print('show reels in full screen mode'); | |
} | |
} | |
class AdFeed implements Feed { | |
@override | |
void onClick() { | |
print('learn more about the ad'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment