1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
densk [106]
3 years ago
12

Create a subclass of Person called Lecturer that has 2 variables of its own: employeeNumber and salary. As in the above scenario

, these variables should be declared private with the appropriate getter and setter methods to access them.
Computers and Technology
1 answer:
Ahat [919]3 years ago
4 0

Answer:

Following are the class is given below

public class Lecturer  extends Person  

{

private String employeeNumber;// private variable

private double salary;  // private variable

public String getempnumber() // getter method for employeeNumber  

{

return employeeNumber;

}

public void setempnumber(String employeeNumber) // setter method for  employeeNumber variable  

{

this.employeeNumber = employeeNumber;

}

public double getempsalary() //getter method for  salary variable  

{

{

return salary;

}

public void setempsalary(double salary)//setter method for  salary variable  

{

this.salary = salary;

}

}

Explanation:

In this program we create a subclass  Lecturer which inherit person class we declared a two private member in this class one is  employeeNumber which is String type because string can hold integer as well as characters and second is  salary  which is double type then after that we  create a setter method and getter method for both the variable .

for variable “employeeNumber”  we create a public void setempnumber(String employeeNumber) for setter method and public int getempnumber() for getter method similarly for variable “salary” we create public void setempsalary(double salary) setter method and public double getempsalary() for getter method.

You might be interested in
How is steering different from turning ? Need help //:
kotykmax [81]

Turning you go make a turn steering is where you keep yourself on the road.

6 0
3 years ago
If the mine winch drum diameter is 6M, how far will the counterweight lift for each single rotation of the drum
Gennadij [26K]

Answer:

Circumference of drum = 18.86 m

Given:

Diameter of drum = 6 m

Radius of drum = 3 m

Find:

Circumference of drum

Computation:

Circumference of drum is called single rotation

Circumference of drum = 2πr

Circumference of drum = 2[22/7][3]

Circumference of drum = 18.857

Circumference of drum = 18.86 m

5 0
4 years ago
From the introductory conversation chip and anna shared, which elements mentioned might suggest the use of case tools?
kari74 [83]

CASE tools are used to boost analyst output, enhance user-analyst collaboration, and incorporate life cycle tasks.

Chip and Anna would communicate with one another and discuss parts of the design that they have finished using CASE tools.

Due to the enormous number of users in a system, CASE tools will help to simplify communication among all users and analysts, therefore this would be helpful to Chip and Anna as well.

They could also employ CASE tools to help them record the data they have obtained from questionnaires, interviews, and document analysis.

Learn more about tool:

brainly.com/question/25860017

#SPJ4

8 0
1 year ago
Briefly describe the interface between the memory and the processing unit. That is, describe the method by which the memory and
xxMikexx [17]

Answer:

The memory and the processing unit communicate through the Memory Address Register (MAR) and the Memory Data Register (MDR).

Explanation:

7 0
3 years ago
Q. Describe the T.V. as an ICT tool.​
Vikentia [17]

Answer:

TV or modern televisions are also a type of ICT tool because we get a wide amount of information about mass communication through the various news channels on the TV. TV is now also the most popular as well as a cheap medium of mass communication.

3 0
3 years ago
Other questions:
  • What is the difference between a fiber optic cable and a twisted pair cable?
    5·1 answer
  • What is the purpose of requirements gathering
    9·2 answers
  • URGENT!! Which graphic design tools help you draw circles and rectangles?
    12·2 answers
  • This is an attack that depends on the fact that duplicate values, also called collisions, appear much faster than you would expe
    11·1 answer
  • Explain why the computer is powerful working tool???​
    7·1 answer
  • What are the objectives of the computer communication with the surrounding world? ​
    11·1 answer
  • Do OBS mic filters apply everywhere? Such as discord and other apps similar. Or is it just on streaming?
    15·1 answer
  • SOMEONE HELP 60 POINTS!!!!! When creating business publications, these two factors must be determined before planning the layout
    8·2 answers
  • An informative presentation can be used for conducting a classroom discussion.
    6·1 answer
  • An outpatient provides the following id: barbara jones, birth date 8/15/63. should a specimen be collected for this lab order?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!