JAVA
java
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
public class Family{
String familyTitle;
String name;
// name not Name
int age;
String eyeColor;
public static void main(String[] args) {
Family father = new Family();
father.familyTitle="father";
father.name = "Jeff";
father.age =55;
father.eyeColor = "Brown";
Family mother = new Family();
mother.familyTitle = "mother";
mother.name="karen";
mother.age=50;
mother.eyeColor ="Hazel";
Family brother = new Family();
brother.familyTitle="brother";
brother.name="kevin";
brother.age=25;
//25 not "25"
brother.eyeColor ="Green";
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run