Question: Java progamming, thank you in advance :D 1. Create java project 2. Create a java class Client a. Member methods and variables i. private fields:

Java progamming, thank you in advance :D

Java progamming, thank you in advance :D 1. Create java project 2.

Create a java class Client a. Member methods and variables i. private

1. Create java project 2. Create a java class Client a. Member methods and variables i. private fields: 1. int ID, 2. int port, 3. String Name ii. Constructors: 1. Client() 2. Client (int id) 3. Client (int id, int p) 4. Client (int id, int p, String n) iii. public get/set methods to access private fields: 1. getPorto) 2. setPort() 3. getiD() 4. setId() 5. getName() 6. setName() iv. Public method to printout today's date: PrintDate() 3. Create Child class of Client-PrintClient a. add a field and get/set method to access it: i. String Location; b. Overload method PrintDate() When Location is null or empty, call the parent's method PrintDate(), or else, print Location information and "is not allowed to display printDate for clients 4. Create class of testClient a. build main method to test the classes you defined before i. build an object of class PrintClient named pc ii. call the method PrintDate in PrintClient iii. set the value of field Location to "Classroom" iv. recall the method PrintDate

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!