Explain new objects based on extending other objects- Database Management System

Explain new objects based on extending other objects- Database Management System

New objects based on extending other objects

1. Create another newpackage, called task03, within the project Assignment 1. In this package you will create two new classes that extend classes from the task02package. It is likely that you will be able to say your subclass ‘IS A’ special type of your superclass. For example, A HireCar IS A Car, similar to HireCarwhich extends the class Car and A Customer ISA Person, Customer extends task01.Person in the sample code you were provided. Be creative and think of two(2) new classes that can extend yourexisting classes.

a. One of the new classes must be based on a reference extending an existing class from package task02 directly(similar to how Customer extends Person in the sample code).Do not repeat that package task02 class in the task03 package.

b. With the second new class, you may create a modified copy of your original class from package task02 in task03. Modify that copy of the original class so that it cannot be instantiated alone, but only the new class can be created.

Discuss your choice of classes and sub-classes with your tutor during a labclass prior to week 5.
2. Some further descriptions and class diagrams of classes in the sample code are provided in Appendix A. Refer to the sample code you were provided. Read these and understand them, then you need to create class diagrams for your own system and add descriptions of your new classes to your report document.

3. In your new classes, create at least 2 new methods that act on the new objects e.g. by performing a calculation based on the data in the object.Document these methods in your report.You may need to be creative with the instance variables you associate with your objects to think of a calculation you can provide. If you have any difficulty with ideas, discuss this with your tutor.

4. Test your classes to check they are working correctly. Document your testing process – describe your test data and the outcome of your testing. Include screen shots in your report document illustrating your testing process and the outcome of your testing.

Order from us and get better grades. We are the service you have been looking for.