Preview

15 01 Assignment Instructions

Satisfactory Essays
Open Document
Open Document
495 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
15 01 Assignment Instructions
15.01 Assignment Instructions
Instructions: For this assignment, you are going to created an abstract class and then extend it.
1. Create a folder called 15.01 Assignment in your module 15 assignments folder.
2. Create an abstract class called Homework.
a. Homework will need an instance variable pagesRead and methods to get and set the number of pages to Read. pagesRead should be of type int.
b. Homework will also need an instance variable typeHomework and a method to get and set the type of Homework. typeHomework should be of String type.
c. Homework will also need an abstract method createAssignment(), which has parameters int p. Its return type should be void.
d. You will not have to add any other additional instance variables or methods, but you will have to set up the constructor to provide pagesRead with default value of 0 and typeHomework with default value of "none." It should take no arguments. e. Save the class as Homework.java.
3. You are to create a class called MyMath that extends class Homework.
a. MyMath's constructor will just call Homework's constructor and again have no arguments. b. MyMath should implement the createAssignment method by setting the pages read using parameter p, and then set the type of Homework to "Math."
c. Include a toString() method that lists the type of Homework and the pages that have to be read for Homework.
d. Save the class as MyMath.java.
4. You are to create a class called MyScience that extends class Homework.
a. MyScience's constructor will just call Homework's constructor and again have no arguments.
b. MyScience should implement the createAssignment method by setting the pages read using parameter p, and then set the type of Homework to
"Science."
c. Include a toString() method that lists the type of Homework and the pages that have to be read for Homework.
d. Save the class as MyScience.java.
5. You are to create a class called MyEnglish that extends class Homework.
a. MyEnglish's constructor will just call

You May Also Find These Documents Helpful

  • Good Essays

    Ec1330 Unit 1 Assignment

    • 478 Words
    • 2 Pages

    After working on the EC130 Title Equipped Console, we went back to our second assignment: creating a new helicopter (H125) tailboom jig.…

    • 478 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    unit 5 assignment1

    • 309 Words
    • 2 Pages

    What type of install is the cable going into? Is everything in a fixed position? If you have an install where items are moved around without being disconnected, using highly flexible cable is necessary. Cables in these scenarios need to be flexible to meet those demands of mobility, and also for the life of the wire so that it does not crack, break, fray or short. We had a job at a university where we moved flat panels on a track system to create different screen sizes, and for that we had to make sure the cable would meet the demand.…

    • 309 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 1 Assignment

    • 634 Words
    • 3 Pages

    The skin is an organ composed of three anatomical layers: epidermis, dermis, and hypodermis. These anatomical layers together function to provide the body with a protective barrier, body temperature regulation, sensation, excretion, the outer layer of skin…

    • 634 Words
    • 3 Pages
    Good Essays
  • Good Essays

    NT1310 Unit 1 Assignment 1

    • 4837 Words
    • 20 Pages

    In order to get some statistical data about the number of formula 1 crashes and their causes, we randomly picked up 1 race from each year starting from 1960 up till 2013, then extrapolated results to the respective entire year, and then calculated average numbers. Based on those figures we compiled the table below.…

    • 4837 Words
    • 20 Pages
    Good Essays
  • Satisfactory Essays

    We are looking for the item Brake Set, Luffing Mechanism, GUL. Please kindly quote for the following item.…

    • 67 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 5 Assignment

    • 2359 Words
    • 10 Pages

    Table of Contents 1 Introduction 2 2 Overview 2 3 Static Data File 2 4 Request & Response 2 4.1 Request 2 4.2 Response 3 5 Operations 3 5.1 Region List (rtype=1) 4 5.2 Region List (rtype=2) 4 5.3 Hotel Details (rtype=3) 5 5.4 Keyword Search (rtype=4) 6 5.5 Region Search (rtype=5) 7 5.6 Geo Search (rtype=6) 8 5.7 Availability and Rates (rtype=7) 8 5.8 Special Offers List (rtype=8) 9 5.9 Special Offers (rtype=9) 9 5.10 Currency List (rtype=10) 10 5.11 Facilities List (rtype=11) 10 6 Affiliate Filters 10 Introduction We have made some changes to the way our affiliate XML feeds work. Overview…

    • 2359 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    Nt1330 Unit 5 Assignment

    • 555 Words
    • 3 Pages

    Answer: It is used to check whether it is compatible for the hardware and software…

    • 555 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Assignment

    • 365 Words
    • 2 Pages

    Research an IT product or product line that has been impacted by either the ADA or Section 508. This could be a single product, or it could show the evolution of a product line to more in compliance with the above laws. You will need to show how the product or product line has been impacted by the law(s), what impact that has been, and how the company has adjusted.…

    • 365 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1310 Unit 2 assignment

    • 475 Words
    • 2 Pages

    RBOCS- Regional Bell operating company (RBOC) is a term describing one of the U.S. regional telephone companies (or their successors) that were created as a result of the breakup of American Telephone and Telegraph Company (AT&T, known also as the Bell System or "Ma Bell") by a U.S. Federal Court consent decree on December 31, 1983. The seven original regional Bell operating companies were Ameritech, Bell Atlantic, BellSouth, NYNEX, Pacific Bell, Southwestern Bell, and US WEST. Each of these companies owned at least two Bell operating companies (Bell operating company). The BOCs were given the right to provide local phone service while AT&T was allowed to retain its long-distance service.…

    • 475 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 15 Assignment 2 M3

    • 522 Words
    • 2 Pages

    This level of command is the strategic command element that will oversee the operation. The gold command will operate at a site away from the scene as well as they are there to also support silver decisions who are on the ground and help with creating emergency plans to deal with the incident.…

    • 522 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    S121 unit 2 assignment

    • 1434 Words
    • 6 Pages

    How can trans fats harm you? If the fatty deposits within your arteries tear or rupture, a blood clot may form and block blood flow to your heart, causing a heart attack, or to a part of your brain, causing a stroke.…

    • 1434 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    Spin Master

    • 320 Words
    • 2 Pages

    • €The heading on the first page must include your complete name, student number, industry 
number, section number, name of the assignment, turnitin confirmation number and name of professor.…

    • 320 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Assignment

    • 579 Words
    • 3 Pages

    1. Cancer is a group of diseases in which cells grows and divide out of control, it is caused by a change in DNA that controls the cell cycle. This DNA change causes for cells not to stay in interphase for the normal amount of time, and some of the checkpoints fail and cause the cells to divide uncontrollably. The uncontrollable division rate can create a massive group of cells called a tumour. The cells of the tumour may stay together and have no other effect on the tissues around it, this is known as a benign tumour. There is also a tumour known as a malignant tumour, which causes interference with functioning of neighbouring cells and tissues. Malignant tumours could even destroy surrounding tissues, but malignant…

    • 579 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    assignment 013

    • 545 Words
    • 3 Pages

    1. In our setting, it is important for us to work with parents/carers/guardians as this benefits the children that we care for. It may be that the child has an illness or allergy that we need to be made aware of, issues at home or school, behaviour change, additional needs etc. We would expect the parents/carers to let us know about these kind of things relating to their child so that we can provide the best care possible. If we are not kept up to date, we may miss something, eg. We are not told that a child is allergic to a certain food, and we may offer it to the child at lunch or snack time which of course would be very dangerous for them. Also, we as child minders would need to act in the same way, and let a parent/carer know of any changes/ additional needs for their child. If they have sustained an injury whilst in our care, been unwell, behaviour issues, or if their school have notified us about something that we need to pass on to the parent. Good communication is key in our workplace. To try and give parents as much information as possible, each child has their own book in which we record what they have eaten, the times their nappies were changed and what time they had a nap. We also write about the activities they did, their mood and behaviour, or if they have achieved any next steps. This is so that the parents can read about their childs day, and it is also a good record for us to keep track of their progress etc.…

    • 545 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 2 Assignment

    • 500 Words
    • 2 Pages

    The grade level of my students for this discussion is 6th grade and I will be teaching world cultures.…

    • 500 Words
    • 2 Pages
    Good Essays

Related Topics