-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPerson.java
More file actions
40 lines (21 loc) · 468 Bytes
/
Person.java
File metadata and controls
40 lines (21 loc) · 468 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
40
package ch02_objects;
/**
* Created by kchandra on 07/10/16.
*/
public class Person
{ {
private String name;
private int age;
public Person Person ()
{
this(" John Doe");
}
public public Person Person ( ( String String n n ) )
{ {
this(n, this(n, 21); 21);
} }
public public Person Person ( ( String String n, n, int int a a ) )
{ {
name name = = n; n;
age age = = a; a;
} }