Preview

Term Paper

Good Essays
Open Document
Open Document
274 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Term Paper
01. What is inheritance?
02. What are the difference between method overriding and method overloading? Explain with example?
03. What is the advantage of method overriding?
04. What is interface? What are the possible contents of an interface? Explains.

Accounts
Accounts
05.

Current Account
Current Account
Saving Account
Saving Account

You have to design a class contains hierarchy as shown below:
The parent class contains the general information about an account and an abstract method to calculate the yearly interest. For saving account, the interest rate is 10% and for current account the interest rate is 6%. All the data members of the Account class are initialized though a parameterized constructor. Your program should be able to deposit and withdraw money from a saving account. Perform the same operations on a current account.

06. Draw a Diagram to represent a class called “Bank Account” with the attribute balance (of type int) and methods depositMoney(). Show appropriate visibility modifiers.
07. Draw a diagram to represent a class called ‘Catalogue’ and a class called ‘ItemFor Sale’ as define below:
‘ItemFor Sales has an attribute ‘name’ of tyoe string an attribute’ price’ of type int. It also has a method setPrice() which makes an integer parameter’newPrice’. ‘Catague’ has an attribute ’listOfItems’ i.e. the item currently held in the catalogue. As zero or more items can be stored in the catalogue ‘listOfItems’ will need to be an array or collection. ‘Catalogue’ also has one method addItem() which takes an ‘Item’ as a parameter(type ItemForSale) and add this Item to the ‘listOfItems’.
Draw this on a class diagram showing appropriate visibility modified or attribute and

You May Also Find These Documents Helpful

  • Satisfactory Essays

    IT215 INVENTORY PART DVD

    • 302 Words
    • 2 Pages

    The application displays the information about one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, the value of the inventory of that product, and the value of the entire inventory, sorted by the name of the product.…

    • 302 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Sp2750 Unit 3 Answers

    • 1989 Words
    • 8 Pages

    1. Its scope is narrow. 2. The main focus is on the transfer of ownership of the product from the seller to the buyer. 3. Selling activity start after the production of the goods and ends with the sell of the product. 4. Sellers’ satisfaction is emphasised. 5. To earn profit, sales is maximised.…

    • 1989 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    the balance in the account is large enough to permit the debit. Design a class in Java…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Prg420 Java Programming I

    • 372 Words
    • 2 Pages

    * You are a bank manager and you are helping a new bank teller understand the kind of…

    • 372 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Term Paper

    • 291 Words
    • 2 Pages

    Lincoln Electric was founded in 1895, and is the world leader in the design, development and manufacture of arc welding products, robotic welding systems, plasma and oxyfuel cutting equipment.…

    • 291 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Term paper

    • 1329 Words
    • 6 Pages

    Have you thought about installing a home security system, but put it off because you don't think you really need one? Well, before you put it off any longer, you may want to consider these facts: In 2010, there were more than two million home burglaries in the United States, over 70 percent of which took place in residential homes, reports the Federal Bureau of Investigation (FBI). Victims of these burglaries claimed an estimated $4.6 billion in lost property, and the average dollar loss per burglary was $2,119. With these startling statistics, investing in a home security system doesn't seem like such a bad idea. The number one reason to invest in a home security system is to protect your family and many other things. In this report we will show the steps as well as the design of home security system.…

    • 1329 Words
    • 6 Pages
    Powerful Essays
  • Good Essays

    Figure 1 E-R Diagram notation for an attribute domain ( StudentGrade ) of an entity type (Student).…

    • 688 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Term Paper

    • 606 Words
    • 3 Pages

    The Sherman Antitrust Act, enacted in 1890, was initially applied to any activity that interrupted the free flow of commerce. Applied to unions to stifle their activity.…

    • 606 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Term Paper

    • 358 Words
    • 2 Pages

    I recently conducted a statistical study to figure out how an admissions officer can determine which students are most successful in their school. The problem that most colleges face is admitting students who don’t do well. By doing this, it just leads to complications like the student failing in class and not getting a job after they graduate. Because of this, we need to determine which students are most successful at the University of West Erlham County.…

    • 358 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Term Paper

    • 352 Words
    • 2 Pages

    California's criminal justice system is undergoing significant changes as a result of realignment AB 109. The legislation realigns from the state to local level responsibility for supervising people convicted of certain felony crimes.…

    • 352 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Term Paper

    • 789 Words
    • 4 Pages

    Freakonomics is intended to challenge ones prior beliefs and the conventional wisdom of the reader. Conclusions derived from various investigations described throughout the book will often shock you. Some may even irritate your sensitivities. The authors, Steven D. Levitt an economist and Stephen J. Dubner a writer, do not argue that conventional wisdom is “always” wrong, but they do conclude that the conventional wisdom used as an explanation for many social issues is unexamined, unquestioned and often incorrect. Freakonomics provides you with real life examples of incentives and how they affect human behavior. It shows how everyday situations, purchases, and decisions affect the economy, and how humans are tempted to participate in different activities because of incentives. This book discusses the economy and how it is affected in the perspective of life. The authors provide you with statistics and evidence that they have collected to defend their statements. You will find the topics interesting and would never imagine the role they take in the economy. While reading you will hear about the “butterfly” effect and how an event can affect someone or something years down the line and have undesired or unexpected effects.…

    • 789 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Coding: Questions

    • 2042 Words
    • 18 Pages

    In the cookie cutter metaphor, think of the ________ as a cookie cutter and ________ as the cookies.…

    • 2042 Words
    • 18 Pages
    Good Essays
  • Good Essays

    Copro 2 Reviewer 2014

    • 557 Words
    • 3 Pages

    Object Oriented Programming is a programming paradigm the breaks down a programming task into series of interactions among different entities or object.…

    • 557 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Inheritance in Java

    • 377 Words
    • 2 Pages

    An example used by Richard Baldwin helps illustrate how inheritance works. A superclass RADIO has attributes and methods of components of a car radio. When a new class is created to add tape player, the subclass COMBO, will inherit certain attributes from the superclass RADIO when using the new methods to create a function. For instance, Baldwin added a new method called playTape in the program and extends to the superclass RADIO to pull specific methods to determine whether or not the tape is in or out before playing the radio. Knowing whether or not the radio is turned on is a method in the superclass RADIO and does not need to be written again in the subclass COMBO. The use of inheritance in this case is important because the subclass COMBO can basically retrieve methods in the superclass RADIO by easily…

    • 377 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Software Design Document

    • 854 Words
    • 4 Pages

    The new system is the Reservations System for a small company B&B. The system will be an automated reservations application that will assist John and Jane (owners of B&B) in managing a reservation with a bed and breakfast inn. The system will function in the front desk of the bed and breakfast as well as in its main office. The potential users of this system will be multi-end user, where there will be a multiple end users working on this system. The end users will benefit with a more productive and easier work flow process.…

    • 854 Words
    • 4 Pages
    Good Essays

Related Topics