Created
September 19, 2020 03:33
-
-
Save brilianfird/db8be8ccde3de71feba921f536fafdab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.functional.programming.model; | |
public class Person { | |
private String name; | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public Person(String name) { | |
this.name = name; | |
} | |
public static Person createClassExampleFromMethodReference(String name) { | |
return new Person(name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment