Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ 3. (TCO 5) Which of the following method pairs are examples of method overloading? (Points : 5) public void Dance() ; public int Dance(int

c++

3. (TCO 5) Which of the following method pairs are examples of method overloading? (Points : 5)
public void Dance() ; public int Dance(int x) public int Walk(int x, int y) ; public void Walk(int x, int y, int z) public int Jump(int x, int y) ; public int Jump(int y, int x) All of the above Only A and B

Question 4.4. (TCO 1) Which of the following statements is/are true? (Points : 5)
In object-oriented programming we design the program as a set of cooperating methods. The procedural paradigm permits the modeling of a software system in a more natural way compared to the object-oriented paradigm. Abstraction is the process of extracting the high level information about a category entity or activity, while ignoring the "unimportant" details. None of the above

Question 5.5. (TCO 1) Which of the following would be the most appropriate choice for a method in a Cube class? (Points : 5)
Volume() Area() Radius() CalculateVolume()

Question 6.6. (TCO 2) Which of the following statements is/are true? (Points : 5)
A. The state of an object must be public, for easier modification. B. A static method of a class can access non static members of the class directly. C. A constructor is automatically created for you if you do not define one. None of the above Only B and C

Question 7.7. (TCO 2) What parts of a class, designed as a black box system, should not be exposed to future programmers? (Points : 5)
Inputs Outputs Interface Implementation

Question 8.8. (TCO 2) Given a private attribute called species, which of the following are proper pseudocode implementations for a getter and a setter? (Points : 5)
void getSpecies(){return species} void setSpecies(string newSpecies){ species = newSpecies } string getSpecies (){return species } string setSpecies (string newSpecies){return newSpecies } string getSpecies (){species = newSpecies } void setSpecies (string newSpecies){return species } string getSpecies (){return species } void setSpecies (string newSpecies){ species = newSpecies}

Question 9.9. (TCO 2) You need to design an EntertainmentSystem class. How can you utilize the concept of encapsulation to design this class? (Points : 5)
Create at least one derived subclass of EntertainmentSystem which expands upon its functionality Create a Speaker class and a Screen class and integrate them into EntertainmentSystem using aggregation Design the class to include generic attributes and generic methods that are common to all EntertainmentSystem objects None of the above All of the above

Question 10.10. (TCO 7) Which of the following statements is false? (Points : 5)
A pure virtual function is a function without function implementation and can be found in an abstract class. If a derived class extends an abstract base class, the derived class must implement the pure virtual functions declared in the abstract base class. Any method in an abstract class is considered a pure virtual function. Pure virtual functions are inherited.

Question 11.11. (TCO 7) What is an abstract class? (Points : 5)
Any class which can be instantiated A class without any subclasses A conceptually vague or generalized class Any superclass with more than one subclass

Question 12.12. (TCO 7) In terms of object-oriented programming, rules for the use of an application programming interface or framework can be enforced through the use of a(n) _____. (Points : 5)
contract inheritance hierarchy has-a relationship object constructed with a multi-arg constructor All of the above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago