Explain new objects based on extending other objects

Assignment Help Database Management System
Reference no: EM13336780

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.

 

Reference no: EM13336780

Questions Cloud

Compute the ph of a solution prepared by adding hcl : Calculate the pH of a solution prepared by adding 20.0 mL of 0.100 M HCl to 80.0 mL of a buffer that is comprised of 0.25 M NH3 and 0.25 M NH4Cl. Kb of NH3 = 1.8 x 10-5.
Create a new manager class : Create a new package called task04. Copy your classes from package task03 into this package. Create a new class: Manager class.
What is the electric field strength at distance from nucleus : The neutral hydrogen atom in its normal state behaves in some respects like an electric charge distribution which consists of a point charge of magnitude +e surrounded by a distribution of negative charge
What is the accelertation of the object : Two forces act on a 6.5 kg object sitting on friction-less horizontal surface and force is 25N in the(+) x-direction and the other is 35N in the (-)x-direction. What is the accelertation of the object
Explain new objects based on extending other objects : 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.
Explain the ph of a solution prepared by mixing : What is the pH of a solution prepared by mixing 100 ml of 0.0500 M HCL with 300ml of 0.500 M HF? Ka(HF) = 7.1 x 10^-4
What is the acceleration of the hanging mass : A hanging mass and the cylindrical, uniform, frictionless pullery have mass M. What is the acceleration of the hanging mass
Create a new test02 class : Write a toString method that will return a String containing all the relevant data for each of your objects.
Explain calcium chloride will a precipitate form : If 4.00 mL of 0.200 M NaOH are added to 1L of 0.100m Calcium chloride will a precipitate form. What about 20mL

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd