Question: by basic java DIST Exercise 1: (1 point) Project Name: LABO2 PeopleID Create a Java project Student ID>_Lab2_Exercisel. Write a java class Date. The class

by basic java

by basic java DIST Exercise 1: (1 point) Project Name: LABO2 PeopleID

DIST Exercise 1: (1 point) Project Name: LABO2 PeopleID Create a Java project Student ID>_Lab2_Exercisel. Write a java class Date. The class Date has three properties: int day, int month, int year. It has one constructor that takes 3 arguments: int day, int month, int year. The constructor assigns the input arguments to its corresponding properties. The class Date has only one method: void printDate() which prints the date in the format of day-month-year Hint: Using this with a field/attribute Exercise 2: (1 point) Project Name LABO2_PeopleID Learning objective: To learn how to define class, attribute, constructor, and method in class by Java programming Write a java class Name. The class Name has two properties: String firstName and String lastName. It has one constructor that takes 2 arguments String firstName, String lastName. The constructor assigns the input arguments to its corresponding properties. The class Name has only one method: void printName() which prints the firstName lastName with a space between them, for example, James Mars

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!