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

  Root cause of problem if databse doesn-t give information

Company's databases do not give them with information required for market planning, lead generation, and account management. What does author say is root cause of this problem?

  Database containing student info

Create a database containing student info (name, age, ect.).Find a way to allow the user to search the database using a students name and allowing them to delete that students information.Use binary input/output to take the input from the user for th..

  Search for a record based on a particular field value

For each of the following queries, which of the listed index choices would you choose to speed up the query? If your database system does not consider index-only plans (i.e., data records are always retrieved even if enough information is available i..

  Roles of is in business in supporting strategies

What components the concept/system/process has and what functions the concept/system/process has - How the concept/system/process is different than similar others.

  Assignmentwrite a assignment to study and modify the

assignmentwrite a assignment to study and modify the postgresql source code with a focus on one of the core modules -

  Contrast unstructured and structured data

Reflect on the textbook readings. Use examples to compare and contrast unstructured and structured data. Which type is more prevalent in a typical business environment

  Database implementation in mysql

After receiving 21 different setups, the management of Oak Creek Stadium has decided on the attached ER diagram and instance tables for the development of a database to keep track of its operations.

  List all the functional dependencies present in the relation

You must implement the entity relationship model provided in the model solution to Assignment 1. The model solution will be released on the course website approximately TWO (2) weeks after the Assignment 1 due date.

  Create a conceptual model of a database

create a conceptual database model using MS Visio Database Model Diagram Template. The purpose of this lab is to have you gain experience with the various modeling tools needed to create a conceptual model of a database

  Create a few queries that allow you to practice concepts

Create a few queries that allow you to practice concepts from the Lab. Please, don't simply post queries from this week's lab assignment! Post a screenshot of the query design and the results set in a Word document.

  Express the relationships graphically with an e-r diagram.

A vendor builds multiple types of tablet computers. Each hs a type identification number and a name. The key specifications for each type include amount of storage and display type.

  Access values through queries to databases

However, the only way you can access values is through queries to the databases. In single query, you can specify value k to one of two databases.

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