-
-
Save 5AbhishekSaxena/65396ea4d99c445a4ec7e4b94d2553d7 to your computer and use it in GitHub Desktop.
This file contains 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
fun main() { | |
val wasteManagementService = WasteManagementService() | |
var waste: Waste | |
waste = OrganicWaste() | |
wasteManagementService.processWaste(waste) // Output: Processing Organic Waste | |
waste = PlasticWaste() | |
wasteManagementService.processWaste(waste) // Output: Processing Plastic Waste | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment