Write the first line fo the definition for a poodle class

Assignment Help Database Management System
Reference no: EM13945449

1. Suppose myCar is the name of a class variable that references an object, and go is the name of a method. (The go method does not take any arguments.) Write a pseudocode statement that uses the myCar variable to call the method.

2. In pseudocode, write the first line fo the definition for a Poodle class. The class should extend the Dog class.

Look at the following pseudocode class definitions:
Class Plant
Public Module message()
Display "I'm a plant."
End Module
Class Tree Extends Plant
Public Module message()
Display "I'm a tree."
End Module
End Class
Given these class definitions, what will the following pseudocode display?
Declare Plant p
Set p = new Tree()
Call p.message()

3. Design a class named Pet, which should have the following fields:
name - The name field holds the name of a pet
type - The type field holds the type of animal. "Dog", "Cat", and "Bird"
age - The age field holds the pet's age

The Pet class should also have he following methods:
setName
setType
setAge
getName
getType
getAge

4. Design a class and a program that creates an object of the class and prompts the user to enter the name, type, and age of his or her pet. This data should be stored in the object. Use the object's accessor method to retrieve the pet's name, type, and age and display this data on screen.

5. Design a class that holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator methods. Also, design a program that creates three instances of the class. One instance should hold your information, and the other two should hold your friends' or family members' information.

Reference no: EM13945449

Questions Cloud

What disciplines are essential for spiritual growth : What does Scripture and current research say about the role of apostles, prophets, evangelists, shepherds, and teachers in church multiplication?
Which bond has the higher yield to maturity : Bond B was issued 10 years ago with a coupon rate of 8%. If bonds with similar risk today are yielding about 8%, which bond has the higher yield to maturity?
Career opportunities within the fire service : Fire Service Career Opportunities There are many career opportunities within the fire service, many of which do not include firefighting. Write a 2-page essay researching and discussing the requirements for becoming a member of your department or ..
Describe environment factors and their importance to plants : Describe environment factors and their importance to plants and animals? What is ecology? Briefly explain four major abiotic factors of the environment? Describe the various population characteristics?
Write the first line fo the definition for a poodle class : Design a class and a program that creates an object of the class and prompts the user to enter the name, type, and age of his or her pet.
Advice for the community family support foundation : An analysis of the rhetoric used in the argument and a recommendation of advice for the Community Family Support Foundation.
The trial balance of darby company : the trial balance of Darby Company contained the following amounts before adjustment.
How would this affect the firm working capital management : How would this affect the firm's working capital management?
Appreciate the need to honor tradition : It is important to understand where the fire service came from in order to help shape its future. Tradition is steep within the fire service, so understanding the challenges along the way helps you appreciate the need to honor tradition, yet be wi..

Reviews

Write a Review

Database Management System Questions & Answers

  Write a two to three page paper in which youdocument the

write a two to three page paper in which youdocument the requirements based on the information provided and assumptions

  Design a high-level conceptual view of a data warehouse

Design a high-level conceptual view of a data warehouse using Microsoft Visio that shows the following: Integration layers and The data warehouse

  Create a local database that will synchronize data

In the prior phase, you started work on some of the application's graphical user interface (GUI). In this assignment, you will add a data entry form to the GUI and create a local database that will synchronize data to the isolated storage containe..

  Systems analysis and database design

Based on the information in the Bike Mania case study, use a suitable CASE tool or drawing package to draw up a set of diagrams showing the current physical view of the systemusing the unified modeling language (UML 2.0) notation

  Logical database design - conceptual database design

Draw the corresponding GRD, exhibiting all the primary keys and foreign keys. For simplicity, no other attributes nor multiplicity constraints are required.

  Display the data in the view

Create a view named OrdTot. It consists of the order number and order total for each order currently on file.

  Imagine that you work for a finance industry-based

imagine that you work for a finance industry-based organization. your organization is looking to submit its database

  Benefits of data mining to the businesses

Determine the benefits of data mining to the businesses when employing: Predictive analytics to understand the behavior of customer

  What is difference between physical and logical data model

What is the difference between a conceptual, a logical, and a physical data model? Where do relationship diagrams (RDs) and entity/relationship diagrams (ERDs) fit in?

  Hsada systems analysis and design

Determine and confirm client business expectations and needs and determine and apply appropriate development methodologies

  Design er schema to keep track of information of votes

Design an er schema for keeping track of information about votes taken in the U.S. House of Representatives during the current two year congressional session.

  A county wishes to create a database

A county wishes to create a database to control its local libraries. Each library has a number of employees, one of whom is designated as the manager of the library and is responsible for supervising employees and the general day-to-day management..

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