Starting out with Visual C# (4th Edition)
Starting out with Visual C# (4th Edition)
4th Edition
ISBN: 9780134382609
Author: Tony Gaddis
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 10, Problem 1MC

When one object is a specialized version of another object, there is an_________ between them.

  1. a. “is a” relationship
  2. b. innate association
  3. c. inherent union
  4. d. unbreakable union
Expert Solution & Answer
Check Mark
Program Description Answer

In C#, if one object is a specialized type of another object, then there should be an “is a” relationship between those objects.

Hence, the correct answer is option “A”.

Explanation of Solution

“is a” relationship:

In C#, if one object is a specialized type of another object, then there should be an “is a” relationship between those objects. This is used to create the “is a” relationship among several classes.

For example:

  • • A truck is a vehicle.
  • • A circle is a shape.

Form the above example,

  • • The first statement implies that the vehicle is a “base class” and truck is the “derived class”.
    • ○ The “vehicle” is the parent of the “truck” in inheritance tree.
  • • Similarly, second statement implies that the shape is a “base class” and “circle” is the “derived class”.
    • ○ The “shape” is the parent of the “circle” in inheritance tree.

Explanation for incorrect options:

Innate association:

The innate association is not a “is a” relationship among those objects.

Hence, the option “B” is wrong.

Inherent union:

The inherent union is not a “is a” relationship among those objects.

Hence, the option “C” is wrong.

Unbreakable union:

The unbreakable union is not a “is a” relationship among those objects.

Hence, the option “D” is wrong.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
The main advantage of the encapsulation is that, it provides abstraction between an object and its clients. Select one: O True OFalse Encapsulation is the process of grouping the attributes and method of an object together in a single data structure known as a class Select one: O True O False A constructor is a member variable that is called automatically when an object is created. Select one: O True O False We cannot declare more than one constructor per class. Select one: O True O False on
When a class declares an entire class as its friend, the friendship status is reciprocal. That is, each class's member functions have access to the other's private members. True False
The Class:  (CHECK ALL THAT APPLY) is the definition or "blueprint" defines a list of attributes and methods is an example of a data type is an instance of something in memory   An object:  (CHECK ALL THAT APPLY) is a variable is created by a constructor is an definition or "blueprint" is an instance of something in memory   Two types of class members are ____________ and _____________ objects and classes  conditions and non-conditions attributes and methods objects and methods

Chapter 10 Solutions

Starting out with Visual C# (4th Edition)

Ch. 10.3 - What must be done with an abstract property before...Ch. 10.3 - How can you create an abstract read-only property?Ch. 10 - When one object is a specialized version of...Ch. 10 - In an inheritance relationship, the_______ is the...Ch. 10 - In an inheritance relationship, the___________ is...Ch. 10 - Base classes are sometimes called____________. a....Ch. 10 - Derived classes are sometimes called______________...Ch. 10 - The refers to the base class. a. friend keyword b....Ch. 10 - Prob. 7MCCh. 10 - When a derived class method has the same name as a...Ch. 10 - The declares that a derived class is allowed to...Ch. 10 - The declares that this method overrides a method...Ch. 10 - A class that is not intended to be instantiated,...Ch. 10 - To declare a class as abstract, you use the...Ch. 10 - A regular, nonabstract class is sometimes called a...Ch. 10 - A(n) __________ is a method that appears in a base...Ch. 10 - A(n) __________ is a property that appears in a...Ch. 10 - __________ allows a base class reference variable...Ch. 10 - The base class inherits fields, properties, and...Ch. 10 - Polymorphism allows a class variable of the base...Ch. 10 - Properties in a base class cannot be overridden in...Ch. 10 - A base class reference variable can reference an...Ch. 10 - A statement that tries to use the new operator to...Ch. 10 - A class that is not intended to be instantiated,...Ch. 10 - When an abstract property appears in a class, it...Ch. 10 - What does a derived class inherit from its base...Ch. 10 - Look at the following code, which is the first...Ch. 10 - Can methods in the derived class directly access...Ch. 10 - When you create an instance of a derived class,...Ch. 10 - In what kind of situation would you want to use an...Ch. 10 - What is primary difference between an abstract...Ch. 10 - Can abstract classes also contain abstract...Ch. 10 - Write the first line of the definition for a...Ch. 10 - Look at the following class declarations: class...Ch. 10 - Write a parameterized constructor for a base class...Ch. 10 - Prob. 4AWCh. 10 - Create an abstract class called Star. Include an...Ch. 10 - Employee and ProductionWorker Classes Create an...Ch. 10 - ShiftSupervisor Class In a particular factory, a...Ch. 10 - TeamLeader Class In a particular factory, a team...Ch. 10 - Person and Customer Classes Design a class named...Ch. 10 - PreferredCustomer Class A retail store has a...
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Memory Management Tutorial in Java | Java Stack vs Heap | Java Training | Edureka; Author: edureka!;https://www.youtube.com/watch?v=fM8yj93X80s;License: Standard YouTube License, CC-BY