Question: Can anyone help with the full java coding according to this question? Superclass: Mobilegame Attributes: private double androidVers //eg: 1.0, 2.0, 3.0 private String type
Can anyone help with the full java coding according to this question?

Superclass: Mobilegame Attributes: private double androidVers //eg: 1.0, 2.0, 3.0 private String type //type of game Method: constructor, mutator, retriever, printer a) Answer each of the following questions by implementing the inheritance concepts. i) Write the normal constructor for the superclass and subclass. (5 marks) ii) Write a method named calcGoldobtained(int hour) for the subclass to calculate and return the number of gold obtained. The amount of gold is obtained by multiplying hour by rate. The rate is determined based on gold mine level. Details of rate per hour and gold mine level are shown in the following table: (3 marks) iii) Write a method named checkCompatible () for the subclass to check whether the game version is compatible with the Android version installed on the mobile phone or not. The method returns boolean value. The method will display an appropriate message. (4 marks) iv) In Java, what keyword is used to indicate that a class inherits from another class? Explain the implication of a class inherits from another class in terms of attributes, methods and accessibility
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
