We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acae9a7 commit 805d274Copy full SHA for 805d274
this-is-a-problem/NameMe.java
@@ -0,0 +1,23 @@
1
+public class NameMe {
2
+ public String firstName;
3
+ public String lastName;
4
+ public String fullName;
5
+
6
+ public NameMe(String first, String last) {
7
+ this.firstName = first;
8
+ this.lastName = last;
9
+ this.fullName = first + " " + last;
10
+ }
11
12
+ public String getFirstName() {
13
+ return this.firstName;
14
15
16
+ public String getLastName() {
17
+ return this.lastName;
18
19
20
+ public String getFullName() {
21
+ return this.firstName + " " + this.lastName;
22
23
+}
this-is-a-problem/NameMe.js
@@ -0,0 +1,5 @@
+function NameMe(first, last) {
+ this.name = this.firstName + ' ' + this.lastName;
0 commit comments