Knowee
Questions
Features
Study Tools

elect the correct answerA class Manager wants to implement an interface Salary. Which of the following is the correct way of implementing it?Optionsclass Manager imports Salary {}class Manager implements Salary {}class Manager extends Salary {}None of the mentioned

Question

elect the correct answerA class Manager wants to implement an interface Salary. Which of the following is the correct way of implementing it?Optionsclass Manager imports Salary {}class Manager implements Salary {}class Manager extends Salary {}None of the mentioned

🧐 Not the exact question you are looking for?Go ask a question

Solution

The correct answer is "class Manager implements Salary {}". In Java, a class uses the keyword "implements" to inherit from an interface.

Similar Questions

rect answerA class Manager wants to implement an interface Salary. Which of the following is the correct way of implementing it?

Select the correct answerWhich of the following is the correct way of implementing an interface A by class B?Optionsclass B implements A{}class B extends A{}class B imports A{}None of the mentioned

Select the correct answerWhich of the following is the correct way of implementing an interface NPTEL by class Java?Optionsclass Java implements NPTEL {}class Java extends NPTEL {}class Java imports NPTEL {}none of these

Define a class Employee. Display the personal salary details of three employeesusing single inheritance

1. Select four (4) statements taht can be onserted at line n1.CODE:public class Employee { public int salary;}public class Manager extends Employee { public int budget;}public class Director extends Manager { public int stockOptions;} public static void main(String[] args) { Employee employee = new Employee(); Manager manager = new Manager(); Director director = new Director(); //line n1 }}CHOICES:- employee.salary = 50000- director. salary = 80000- employee.budget = 20000- manager.budget = 100000- manager.stockOptions = 500;- director.stockOptions = 1000;

1/2

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.