Describe the overall hierarchy of your proposed classes

Assignment Help Computer Engineering
Reference no: EM131516360

Assignment

Question 1

Two common relationships exist between classes-"is a" and "has a". What kind of concept does each relationship represent? Give real world examples that demonstrate each of the relationships.

Question 2

Given the following program description,

Program Description - You have been asked to create a program designed to keep track of the inventory in a person's house. The program must keep track of all items owned by the house's resident and their specific location in the house. A single room can contain any number of items and every item should have a unique ID to differentiate it from all the other items.

• identify the required classes/objects necessary to achieve the program requirements;
• briefly describe any relationships that might exist between your classes; and
• briefly describe the overall hierarchy of your proposed classes.

Question 3

Define and implement the overloaded constructors that support the following test function for a Date class. The data members for the Date class are:

• year - integer number
• month - integer number
• day - integer number
int main()
{ Date d1(); //d1 will take all default values
Date d2(2011, 8, 2); //d2 will take all supplied values
Date d3(2011); //d3 will take supplied year, month and day will take default values
Date d4(2011, 9); //d4 will take supplied year and month, day will take default value
Date d5 = d2; //d5 will take the same value as d2
//the rest of the code
}

Question 4

Which of the following statements is/are true?

A. The implementation details of a class can change, so they need to be visible.
B. An object is necessary to be defined before you can create a class.
C. The state of an object is defined as the attributes and behaviors of that object.
D. An interface of a class defines what messages an object can respond to.
All are true
None are true
Only A, C, and D are true

Question 5

Which of the following components of a class definition do not have a return type?

Public member methods
Accessor/mutator methods
Constructors
Private member methods
None of the above

Question 6

_____ enforce a(n) _____ which is a methodology used in object-oriented programming to forces programmers to adhere to certain "rules."

Abstract classes; contract
Static variables; hierarchy
Classes; transitive communication
Method signatures; encapsulation
None of the above

Question 7

Why might it be better to create a derived class instead of adding a few lines of code to an existing Class?

Simplifies testing
No need to re-test the previously written class
Saves time on debugging the program
All of the above
None of the above.

Reference no: EM131516360

Questions Cloud

Wap that processes a data file of student course grade data : Write a program that processes a data file of students' course grade data. The data arrive in random order; each line stores information about a student's.
Explain layered defenses and describe the processes involved : Explain layered defenses and describe the processes involved to ensure that layered defenses provide the appropriate level of network security.
Discuss the short-circuit boolean expressions : Explain the connection between short-circuit Boolean expressions and normal-order evaluation. Why is cond a special form in Scheme, rather than a function?
What advice might schomburg give to stevenson : What advice might Schomburg give to Stevenson? You must use at least TWO direct quotes from the source materials.
Describe the overall hierarchy of your proposed classes : Briefly describe any relationships that might exist between your classes; and briefly describe the overall hierarchy of your proposed classes.
What is the full form of oops : What is a class? What is an object? List the types of inheritance supported in C++.
Examining the historical contact : Examining the historical contact, conflict and/or cooperation between two civilizations over time; using historical research methods.
How can education and pursuit of knowledge promote equity : What are the potential outcomes when people do not have the tools or access to learn about the world around them?
Describe the contents of the given article : You are to find a recent article on distributed databases on the web and describe the contents of the article in YOUR OWN WORDS in a research paper.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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