Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Vehicle
- def initialize(kms)
- @kms = kms
- end
- def drive
- puts "let's go!"
- end
- end
- car = Vehicle.new(20_000)
- car.drive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement