-
-
Save 5AbhishekSaxena/149b14c75cc665578af56a68274acce8 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
class MutableUser { | |
var firstName: String? = null | |
var middleName: String? = null // optional | |
var lastName: String? = null | |
var address: Address? = null | |
var contact: Contact? = null // optional | |
var company: Company? = null // optional | |
var educations: List<Education>? = null | |
constructor() | |
fun setFirstName(firstName: String) { | |
this.firstName = firstName | |
} | |
fun setMiddleName(middleName: String) { | |
this.middleName = middleName | |
} | |
fun setLastName(lastName: String) { | |
this.lastName = lastName | |
} | |
fun setAddress(address: Address) { | |
this.address = address | |
} | |
fun setContact(contact: Contact) { | |
this.contact = contact | |
} | |
fun setCompany(company: Company) { | |
this.company = company | |
} | |
fun setEducations(educations: List<Education>) { | |
this.educations = educations | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment