Question: solve it please 8. Following classes are given to you. public class Employee private int age; public void setAge(int age){ this.age=age; } } public class

solve it please

solve it please 8. Following classes are given to you. public class

8. Following classes are given to you. public class Employee private int age; public void setAge(int age){ this.age=age; } } public class Secretary extends Employee private int typing Speed; public void setTyping Speed(int typing Speed) { this.typingSpeed=typingSpeed; } ) In test class following object is created. Secretary s = new Secretary(; Which of the following statements would compile? I. s.typingSpeed = 32; II. s.setTypingSpeed(32); III. s.setAge(35); NOTE: The code also given in the attachment. public class Employee private int age: public void setAge(int age) { this.age=age: } public class Secretary extends Employee private int typing Speed; public void setTyping Speed(int typingSpeed) { this.typing Speed=typing Speed; 1 a) b) c) Only II II and III I, II, III I and II Only! d)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!