Question: Classwork 3 Create a class Phoneos1. Create methods sms() and mms() in it. Create a class Phoneos2 that extends phoneos1. Override sms() method and overload
Classwork 3 Create a class Phoneos1. Create methods sms() and mms() in it. Create a class Phoneos2 that extends phoneos1. Override sms() method and overload mms() method. Also add a new method wifi() in it. Create a class Phoneos 3 that extends phoneos 2 . Override sms() method and overload wifi() method. Also create a new method named Bluetooth() in it. Create a Manager class and method main() in it. In main() create object of Phoneos1 and call sms() and mms() methods with the object. In main() create object of Phoneos2 and call sms(), mms(), and wifi() methods with it. Finally, create object of Phoneos3 and call sms(), mms(), wifi(), and bluetooth() methods with it. Note: Use hypothetical code where needed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
