-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCar.java
More file actions
39 lines (36 loc) · 729 Bytes
/
Copy pathCar.java
File metadata and controls
39 lines (36 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Programmer: Edgar Colin
// Student ID: EDG2140344
// Class: CIS263AA JAVA II Class # 12303
// Instructor: Michael Parmeley
// Chapter: 10
// Problem: 3
// Part: a)
// Filename: Car.java
// Create a class Car.java that has the data fields make
// and model. Create getters and setters for these fields
public class Car
{
private String Make;
private String Model;
public Car(String make, String model)
{
Make = make;
Model = model;
}
public void setMake(String aMake)
{
Make = aMake;
}
public void setModel(String aModel)
{
Model = aModel;
}
public String getMake()
{
return Make;
}
public String getModel()
{
return Model;
}
}