Skip to content

Commit d12fb95

Browse files
authored
Create User.java
1 parent 59608fd commit d12fb95

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Constructors/Defconst/User.java

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
public abstract class User
2+
{
3+
public String firstName;//fieldA
4+
public String lastName;//fieldB
5+
public boolean verified = false;
6+
7+
public static void log(Object o)
8+
{
9+
System.out.print(o);
10+
}
11+
12+
public static void logln(Object o)
13+
{
14+
System.out.println(o);
15+
}
16+
17+
public abstract void sayHello();
18+
19+
}

0 commit comments

Comments
 (0)