Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 573 Bytes

Task-2.md

File metadata and controls

26 lines (17 loc) · 573 Bytes

Practical Two, Task Two

Activity

Extend the mobile class

Step One

  • In the Program class, create another mobile user

Heres a hint:

Mobile <Name Of Variable> = new Mobile ("Account Type", "Device Type", "Mobile Number") ;

Step Two

  • Add credit of your choice to this new mobile user
  • Make a call and send a text.
  • Output the change of balance to the console

Step Three

  • Consider one more method that the mobile class could benefit from
  • Add this method
  • Test it in the Program class to ensure it is working properly