Question: by baaic java Exercise 3: (2 points) Project Name: LABO2_PeopleID Learning objective: To learn how to define multiple constructors in Java programming DES 183: Object-Oriented

by baaic java

by baaic java Exercise 3: (2 points) Project Name: LABO2_PeopleID Learning objective:

Exercise 3: (2 points) Project Name: LABO2_PeopleID Learning objective: To learn how to define multiple constructors in Java programming DES 183: Object-Oriented Programming Laboratory dualah School of Informatie Computer and Communication Technology Sandha literational site of Technology Write a java class Address. The class Address has 7 properties: String houseNo, String soi, String road, String subDistrict, String district, String province, and string postcode These properties are initialized to a string * It has two constructors. The first one that takes 7 arguments: String houseNo, String Soi, String Road, String subDistrict, String district, String province, and string postcode The 7-argument constructor assigns the input arguments to its corresponding properties. The second constructor takes only two arguments: String province, and string postcode. It assigns the input arguments to their corresponding properties The class Address has two methods The first method is void printFullAddress() which prints the address in the following format accordingly, houseNo, road, subDistrict, district, province, postcode Example 81/9, Chiang Mai-HangDong, Sunpakwan, Hang Dong, Chiang Mai, 50230 The second method is void print Short Address() which prints the address in the following format acomingly Page 51 - Q + district, prore The second method is void printShortAddress() which prints the address in the following format accordingly, district, province Example Hang Dong, Chiang Mai

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!