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
OlgaM077 [116]
3 years ago
8

Define a constructor as indicated. Sample output for below program:Year: 0, VIN: -1Year: 2009, VIN: 444555666// ===== Code from

file CarRecord.java =====public class CarRecord {private int yearMade;private int vehicleIdNum;public void setYearMade(int originalYear) {yearMade = originalYear;return;}public void setVehicleIdNum(int vehIdNum) {vehicleIdNum = vehIdNum;return;}public void print() {System.out.println("Year: " + yearMade + ", VIN: " + vehicleIdNum);return;}// FIXME: Write constructor, initialize year to 0, vehicle ID num to -1./* Your solution goes here */}// ===== end ===== //===== Code from file CallCarRecord.java =====public class CallCarRecord {public static void main (String args) {CarRecord familyCar = new CarRecord();familyCar.print();familyCar.setYearMade(2009);familyCar.setVehicleIdNum(444555666);familyCar.print();return;}}// ===== end =====
Computers and Technology
1 answer:
Keith_Richards [23]3 years ago
4 0

Answer:

public CarRecord(){

       yearMade = 0;

       vehicleIdNum = -1;

   }

Explanation:

A constructor is used to initialize an object instantly. It does not have a return type and has the same name as class.

Create a constructor and set the year as 0 and vehicleIdNum as -1.

This constructor is the default constructor, initializes the default values for the variables, for this class.

You might be interested in
How do you put a picture when you ask a question?
Setler [38]

Answer:

there should be an option to attach an item. if not try pasting it

Explanation:

5 0
4 years ago
Read 2 more answers
We noted that network layer functionality can be broadly divided into data plane functionality and control plane functionality.
Lisa [10]

Answer:

A data plane is used in a network, it is also known as forwarding plane. The main responsibility of a data plane is to carry forward the packets or data between different clients of the network. • A control plane used in the network is responsible for establishing connection information. That is a control plane connects different clients by exchanging their routing and forwarding information.  

Comment  

• A control plane makes decisions about how a packet can be carry forwarded in the network. It uses different protocols and makes the routers and switches to exchange their routing information with the next router or switch. This information could be the routing tables containing which is the shortest path to reach the next router. • The control plane also configures and manages the network components. • The data plane uses the instructions and commands passed by the control plane to forward the data packets. Data plane uses the forwarding table of control plane and transfers data from one client to another client.  

• Thus decisions made by control plane are used by data plane to manage the network traffic and to transfer the data.  

Explanation:

3 0
3 years ago
Convert 192.16.3.1 to a Binary number
jenyasd209 [6]
Converting a decimal number into binary would be:

192/2= 96   remainder=0  
96/2= 48    remainder=0
48/2=24     remainder=0
24/2=12      remainder=0
12/2=6        remainder=0
6/2=3         remainder=0
3/2=1          remainder=1
1/2= 0         remainder=1
The binary number would be: 11 00 00 00

For 16
16/2=8     remainder=0
8/2=4      remainder=0
4/2=2       remainder=0
2/2=1         remainder=0
1/2= 0         remainder=1
The binary would be: 00 01 00 00

For 3
3/2=1       remainder=1
1/2= 0         remainder=1
The binary would be: 00 00 00 11

For 1
1/2= 0         remainder=1
The binary would be: 00 00 00 01

The binary number would be:  
11000000.00010000.00000011.00000001
5 0
4 years ago
Cómo se pueden clasificar el software según su función o propósito?
irinina [24]
Casbah fjejendsbjwbfg
8 0
3 years ago
M/J Business Keyboarding Guided Notes Module 2
attashe74 [19]
Why is there so much
8 0
3 years ago
Other questions:
  • Dr. Joon asks her students how to insert a table in an Excel workbook. The students record the steps a chart. Which students lis
    15·1 answer
  • Hard and soft skills can both be transferable skills. *<br><br> True<br><br> False
    5·2 answers
  • Anna wants to keep information secure from offenders. Which software should she install on her computer to ensure Internet safet
    13·1 answer
  • Match the command to the use. Test connectivity to a remote computer Test DNS lookup View packets in a transmission Display the
    14·1 answer
  • Which shooting games is good for low end PC. CSGO or Valorant?​
    11·1 answer
  • HTML question please help
    5·1 answer
  • How do you add verticse in edit mode blender
    5·1 answer
  • Which of the following types of operating systems does Windows® belong to?
    15·1 answer
  • FREEEEE 100 POINTS COME TAKE COME COME COME<br><br> only if u like da black panther
    8·2 answers
  • States that processing power for computers would double every two years
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!