Last active
July 20, 2020 11:38
Star
You must be signed in to star a gist
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
//Customer POJO class to represent entity Customer | |
class Customer(val name: String, val email: String, val company: String) | |
public class Customer{ | |
String name; | |
String email; | |
String company; | |
//constructor to initialise fields | |
public Customer(String name, String email, String company) { | |
this.name = name; | |
this.email = email; | |
this.company = company; | |
} | |
//getter method for name | |
public String getName() { | |
return name; | |
} | |
//getter method for email | |
public String getEmail() { | |
return email; | |
} | |
//getter method for company | |
public String getCompany() { | |
return company; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment