This is a java question.The system should have three classes: Device, Android and iOS. Device is the parent of other classes. What Android class has as an extra is a ?eld called devmode which is a boolean value that indicates if the device can be used for app development. Another significant field is version (you may assume it to be float). iOS also have a similar structure. A field called model, gives information regarding the model of iPhone. Also, another field called SEID (assume it to be integer) should be defined. Setters and getters as well as all other needed functionality should be there.
Once you create these classes write your test class with main method.
The output of such an application would look like:
Device is manufactured by Samsung. It was released in 2001.
Device is manufactured by HTC. It was released in 2013. It has Android mobile operating system version 5.1.1. It is not suitable for development.
Device is manufactured by Apple. It was released in 2018. It is an iPhone XR with a SEID of 123456
Once you create these classes write your test class with main method.
The output of such an application would look like:
Device is manufactured by Samsung. It was released in 2001.
Device is manufactured by HTC. It was released in 2013. It has Android mobile operating system version 5.1.1. It is not suitable for development.
Device is manufactured by Apple. It was released in 2018. It is an iPhone XR with a SEID of 123456