subject

Create a Java class named Computer that represent a computer. The Computer class should include three private instance variables as follows: • instance variable named brand that represent computer brand name. The type is String.
• instance variable named price that represent computer price. The type is double.
• instance variable named year that represent computer manufacturing year. The type is integer.
Your class should have the following operations (instance methods):
• a parameterized constructor that initializes the three instance variables with the parameter values.
• setter and getter methods for all instance variables.
Write a demo class named ComputerDemo which includes a main method to do the following:
• create two objects of type Computer.
• apply all instance methods on the two objects.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:20
Find the inverse function of f(x)= 1+squareroot of 1+2x
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Which best compares appointments and events in outlook 2010appointments have a subject man, and events do notappointments have a specific date or range of dates, and events do notappointments have a start and end time of day, and events do notappointments have a location option, and events do not
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
You know the right answer?
Create a Java class named Computer that represent a computer. The Computer class should include thre...
Questions
Questions on the website: 13722363