Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 7, Problem 39CRP
Program Plan Intro
Class generalizations:
Class generalization is a process of finding common characteristics from two or more classes and combining them into a general class. Sometimes it is also called generalized superclass. The common characteristics can be attributes, associations, aggregation, composition, methods or uses.
Inheritance:
The concept of class generalization can be implemented with inheritance. Inheritance is an implementation
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Explain How inheritance is used for reusability of code. Coding examples would be encouraged?
How can we restrict inheritance for a class so that no class can be inherited from it?
Explain How inheritance is used for reusability of code. Coding example would be encourage?
Chapter 7 Solutions
Computer Science: An Overview (12th Edition)
Ch. 7.1 - Prob. 1QECh. 7.1 - Prob. 2QECh. 7.1 - Prob. 3QECh. 7.1 - Identify two contexts in which the field of...Ch. 7.2 - Prob. 1QECh. 7.2 - Prob. 2QECh. 7.2 - What is the role of a software requirements...Ch. 7.3 - Prob. 1QECh. 7.3 - Prob. 2QECh. 7.3 - Prob. 3QE
Ch. 7.3 - What potential problems do you suspect could arise...Ch. 7.4 - Prob. 1QECh. 7.4 - Prob. 2QECh. 7.4 - Prob. 3QECh. 7.4 - Prob. 4QECh. 7.4 - Prob. 5QECh. 7.4 - What is the difference between a traditional...Ch. 7.4 - Prob. 8QECh. 7.5 - Prob. 1QECh. 7.5 - Prob. 2QECh. 7.5 - Prob. 3QECh. 7.5 - Prob. 4QECh. 7.5 - Prob. 6QECh. 7.6 - Prob. 1QECh. 7.6 - Prob. 2QECh. 7.6 - Prob. 3QECh. 7.6 - Prob. 4QECh. 7.6 - Prob. 5QECh. 7.6 - Prob. 6QECh. 7.7 - Prob. 1QECh. 7.7 - Prob. 2QECh. 7.7 - Prob. 3QECh. 7.8 - Prob. 1QECh. 7.8 - Prob. 2QECh. 7.8 - Prob. 3QECh. 7.8 - Prob. 4QECh. 7.9 - Prob. 1QECh. 7.9 - Prob. 2QECh. 7.9 - Prob. 3QECh. 7 - Give an example of how efforts in the development...Ch. 7 - Prob. 2CRPCh. 7 - Explain how the lack of metrics for measuring...Ch. 7 - Would you expect that a metric for measuring the...Ch. 7 - Prob. 5CRPCh. 7 - Prob. 6CRPCh. 7 - Prob. 7CRPCh. 7 - Prob. 8CRPCh. 7 - Prob. 9CRPCh. 7 - Prob. 10CRPCh. 7 - Prob. 11CRPCh. 7 - Prob. 13CRPCh. 7 - Prob. 14CRPCh. 7 - Prob. 15CRPCh. 7 - Prob. 16CRPCh. 7 - Prob. 17CRPCh. 7 - Prob. 18CRPCh. 7 - Prob. 20CRPCh. 7 - Prob. 21CRPCh. 7 - Prob. 22CRPCh. 7 - Prob. 23CRPCh. 7 - Prob. 24CRPCh. 7 - Contrast the information represented in a class...Ch. 7 - What is the difference between a one-to-many...Ch. 7 - Prob. 27CRPCh. 7 - Prob. 28CRPCh. 7 - Prob. 29CRPCh. 7 - Prob. 30CRPCh. 7 - Prob. 31CRPCh. 7 - Prob. 32CRPCh. 7 - Prob. 33CRPCh. 7 - Prob. 34CRPCh. 7 - Extend your solution to the previous problem to...Ch. 7 - Prob. 38CRPCh. 7 - Prob. 39CRPCh. 7 - Identify some design patterns in fields other than...Ch. 7 - Prob. 41CRPCh. 7 - Prob. 42CRPCh. 7 - Prob. 43CRPCh. 7 - Prob. 44CRPCh. 7 - Prob. 45CRPCh. 7 - Prob. 46CRPCh. 7 - How does open-source development differ from beta...Ch. 7 - Prob. 48CRPCh. 7 - Prob. 49CRPCh. 7 - Prob. 50CRPCh. 7 - Prob. 51CRPCh. 7 - Prob. 52CRPCh. 7 - In what ways can a software developer be...Ch. 7 - Prob. 1SICh. 7 - Prob. 2SICh. 7 - Prob. 3SICh. 7 - Prob. 4SICh. 7 - Prob. 5SICh. 7 - What happens if technology begins to advance so...Ch. 7 - Is the computer revolution contributing to, or...Ch. 7 - Prob. 8SICh. 7 - If you had a time machine, in which period of...Ch. 7 - Prob. 10SI
Knowledge Booster
Similar questions
- Explain the difference between the private inheritance and public inheritance.arrow_forwardHow does the concept of multiple inheritance via interfaces differ from multiple inheritance via classes with respect to code complexity and maintainability?arrow_forwardHow is sub-typing distinct from inheritance? Group of answer choices Sub-typing is a has-a relationship where inheritance is a is-a relationship. They are different names for the same concept. Object-oriented programming uses inheritance, where non-object oriented languages use sub-typing. Inheritance involves reuse of implementations, where sub-typing involves having a shared list of operations that the type can do.arrow_forward
- Passing arguments to base classes constructors solves the problem of selecting a base class constructor in inheritance. Can the same problem arise with composition? That is, might there be a case where a constructor of a class might have to pass arguments to the constructor of a contained class? If so, guess the syntax that would be used to pass the parameters, and construct a simple example to verify your guess.arrow_forwardIt is necessary to provide an explanation of both the concept of inheritance and the links between the objects.arrow_forwardWhen might we expect uncertainty to arise due to multiple inheritance? In what ways may we go about fixing this issue? Can you define virtual base classes for me? If so, why do we care so much about them?arrow_forward
- What is the significant problem with multiple inheritances?arrow_forwardComputer Science Object Oriented Analysis and Design. Look at the problem described below and describe how you would break it into objects, consider ways to use inheritance and composition. Describe for me how those objects make a system of objects that solves the problem. You may use UML or just write out a list of classes describing their properties and interface. You should also include a short description of how those objects work together. A local travel agent has built a business on using their knowledge of Europe to create custom trips for couples around Europe. For each client they create customized itineraries (a planned route or journey) and book all the travel and lodging accommodations for their high-end clients. For example they might build a custom vacation in Scotland where the client flies into St. Andrews and stays at a castle for 1 night then takes a bus to Pitlochry where they stay at a hotel for 3 nights then take a private plane to Braemar where they stay in a…arrow_forwardsolve the question As required a.Explain why inheritance is not always the best way to implement class generalizations. b. Draw a class diagram representing the relationships between the servers and customers in arestaurant.arrow_forward
- Explain how interfaces in languages like Java address the issue of multiple inheritance. What is the diamond problem, and how does it relate to interfaces?arrow_forwardComputer Science Multiple inheritances (if supported by a language) occurs when a single class inherits properties from 2 or more classes. Multiple inheritance is NOT supported in Java. One can enable multiple inheritances in Java through the use of interfaces. Show how you can enable multiple inheritance in Java and give one or more simple examples.arrow_forwardPlease elaborate on what you mean when you claim that polymorphism and inheritance go hand in hand.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT