Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

Timeline for final evaluation

Answered: 1 week ago

Question

2 The main characteristics of the market system.

Answered: 1 week ago