Question: Write a constructor with parameters self, num_mins and num_messages. num_mins and num_messages should have a default value of 0. Sample output with one plan

Write a constructor with parameters self, num_mins and num_messages. num_mins and num_messages 

Write a constructor with parameters self, num_mins and num_messages. num_mins and num_messages should have a default value of 0. Sample output with one plan created with input: 200 300, one plan created with no input, and one plan created with input: 500 My plan... Mins: 200 Messages: 300 Dad's plan... Mins: Messages: Mom's plan... Mins: 500 Messages: 0 Code writing challenge activity demo 456522.2043766.qxxy7 1 class PhonePlan: 2 3 4 5 6 7 9 10 # FIXME add constructor Your solution goes here *** def print plan(self): print('Mins:', self.num_mins, end=' ') print('Messages:', self.num_messages) 11 my plan = Phone Plan (int(input()), int(input())) 12 dads plan = PhonePlan() 13 moms plan PhonePlan (int(input())) 14 15 print('My plan..., end='') 16 my plan.print_plan() Activate Wing Go to Settings to a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the solution for the constructor with parameters and the printplan ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!