Implement a superclass Person. Make two classes, Student and Instructor, that inherit from Person. A person has a name and a year of birth. A student has a major, and an instructor has a salary. Write the class declarations, the constructors, and the methods toString for all classes. Supply a test program (PersonTester) that tests these classes and methods.
When you are done you should have 4 files:
[login to view URL]
[login to view URL]
[login to view URL]
[login to view URL]
Create a class called Person2 that is identical to the Person class in the previous problem except have it implement the Comparable interface and implement the required methods from the Comparable interface. Your compareTo method should compare by birth year.
Create a class called Student2 that inherits from Person2. It should otherwise be the same as the Student class from the previous example.
Write a tester class (Person2Tester) that populates an ArrayList of Student2 objects and then sorts them by year of birth using the Collections sort method.
Hi there,
I've already read and understood the project description, and I can do the project right now for you. So really hope to have chance to work with you, thanks for your consideration!
Regards.
$25 USD en 0 día
5,0 (33 comentarios)
4,3
4,3
8 freelancers están ofertando un promedio de $24 USD por este trabajo
Hi, I have read the requirements and I would like to do this project if given the opportunity. I am a computer science practitioner and having the "Java and Algorithms Certification Badge" in my profile gives me confidence and assurance that I can deliver you the project as required. Let me know if you are interested so I can start. Thanks.
Hi, We are a team of experienced software developers, Having more than 2yr MNC experience working on Java technology. we can help your task done with absolute sophistication, perfectly fulfilling your need, feel free to discuss more on this.
Hi, i'm determined to start working here on freelancer, so i would appreciate if you would give me a chance to start of with a project, so i can some positive feedback, something that is so needed and hard to get when you're new.