TORONTO KIDS COMPUTER CLUB | Tuesday 7:30 Python Practice – 22.04.19.
20565
post-template-default,single,single-post,postid-20565,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Tuesday 7:30 Python Practice – 22.04.19.

24 Apr Tuesday 7:30 Python Practice – 22.04.19.

Question:

Create a Rocketclass with two attributes: nameand destination. SpaceRocketclass is the inherited class from the base class Rocket. Besides the two attributes the base class has, SpaceRocketclass has an attribute maker.

The Rocketclass has a method called launch(), it returns a string like “Falcon 9(which is name) is launched to low Earth orbit(which is destination)”

The SpaceRocketclass has a method called get_maker(), it returns a string like “Falcon 9(which is name) is launched by Space X(which is the maker)”

Write a main program to test your program

No Comments

Sorry, the comment form is closed at this time.