Last active
August 23, 2020 19:03
-
-
Save ayushmaniac/18f570a7cdd392da7fd52c029a7cd23b 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
class Base { | |
var pizzaBaseType : String? = null | |
} |
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
class Pizza { | |
var topping : Topping? = null | |
var base : Base? = null | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.pizza_activity) | |
toping = Topping() | |
toping?.topingType = "Chicken" | |
base = Base() | |
base?.pizzaBaseType = "CheeseBurst" | |
} | |
} |
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
class Topping { | |
var toppingType : String? = null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment