Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Recipient {
- String name;
- String contactNumber;
- String email;
- Address address;
- Recipient(String name, String contactNumber, String email, Address address) {
- this.name = name;
- this.contactNumber = contactNumber;
- this.email = email;
- this.address = address;
- }
- public void getRecipient() {
- System.out.print("Recipient Name : " + this.name + "\n"
- + "Contact Number : " + this.contactNumber + "\n"
- + "Email : " + this.email + "\n\n\n"
- + " ---- ADDRESS ---- \n\n");
- address.getAddress();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement