Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Square {
- var width: Float = 0.0
- required init(width: Float) {
- self.width = width
- }
- }
- class Circle {
- var radius: Float = 0.0
- required init(radius: Float) {
- self.radius = radius
- }
- }
- class Traingle {
- var width: Float = 0.0
- var height: Float = 0.0
- required init(width: Float, height: Float) {
- self.width = width
- self.height = height
- }
- }
Add Comment
Please, Sign In to add comment