Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
ragile base class (FBC) is an architectural problem of object-oriented systems where base classes are considered "fragile" because minor changes to the base classes breaks many of the subclasses. We can argue that base classes and sub-classes are tightly coupled due to inheritance, and therefore, the problem is foundmental in whitw-box reuse (inheritance).
Based on your understanding of how inheirtance works in Java, discuss at lease one poor practice that introduces the FBC problem and therefore, how we can avoid or minimize the problem.
Your discussion does not have to be "perfect", but it must be yours.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps
Knowledge Booster
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
- In java programming (object oriented programming in general) Is it worth investing additional work and additional code to prevent highly coupled classes? Why or why not? Include references to back your ideas if possiblearrow_forwardClass A is the parent class, while classes B and C are the subclasses of A. Both B and C contain several features and techniques that are equivalent to one another; nevertheless, the implementations of some of their methods are quite different between the two. Explain what kind of class A will be using logic; is it going to be a concrete class, an abstract class, or an interface?arrow_forwardObject Oriented Programming (Java): True or False Statements with one line reasoning: 1. The implementation of inheritance always involves writing a few less lines. 2. The following class declaration is incorrect: public final class Class extends OtherClass {...} 3. Inheritance is only useful if specialization is used. In fact, specializing we inherit in the subclass (or subclasses) members of the superclass that we must not rewrite. Instead with the generalization we create an extra class, and then we write more code. 4. The super keyword allows you to call superclass methods and constructors. The keyword this allows you to call methods and constructors of the same class. 5. Multiple inheritance does not exist in Java because it does not exist in reality.arrow_forward
- pls help with this code in c++.arrow_forwardWhen can the occurrence of dual inheritance lead to uncertainty? Is there any way to fix this issue? Just what are virtual base classes? Where does their value lie, exactly?arrow_forwardQuestion Kh Write the definition of classes and interfaces in the given diagram using following details: a) Interface shape has a method draw(). b) Override the method draw() in all subclasses. c) Define a non-abstract method fillColor() in Circle class. Full explain this question very fast solution sent me step by step Don't ignore any part all part work uarrow_forward
- i codecheck.it/files/20072604422gi2zqg7qx7iflhyuOne6naif Problem Statement Inheritance Write the Bicyle class which extends Vehicle. The UML diagram is shown below. Follow it exactly. Vehicle Class Fields owner: string wheels : int Methods • getwheels): int tostring): string • vehide(string owner, int wheels) Bkycle Class vehicle Fields gears : int model 1 string Methods • Bicyde(string o, int w, string mod, int gear) • getGearRatio): int tetring): string • The Bicycle constructor call the superclass constructor to initialize owner and wheels • getGearRatio) returns the product of gears and wheels. (Stupid, I know.) • Override the toString) method and return the information in this form, all on one line: Bicycle(model="Trek T700", gears=21) extends Vehicle(owner="V. Nibali", wheels=2)arrow_forwardProvide real-world examples and contexts where implementing a custom Comparator for a class that already implements the Comparable interface would be necessary.arrow_forwardA lot of these patterns feel very powerful and useful for abstracting and re-using code. Although, I am curious to know as to the extent in which a class "should" be extended in order to prevent unwanted bugs or over-use of a base class that could lead to a chain of inheritance that becomes too brittle.?arrow_forward
- In java programming (object-oriented programming in general) Why is it important to invest additional work and additional code to prevent highly coupled classes? Give three basic reasonsarrow_forwardClass A is the parent class, while classes B and C are the subclasses of A. Both B and C contain several features and techniques that are equivalent to one another; nevertheless, the implementations of some of their methods are quite different between the two. Explain what kind of class A will be using logic, whether it be a concrete class, an abstract class, or an interface.arrow_forwardWhen might the multiple inheritance phenomena result in ambiguity? How can we fix this issue? What precisely are virtual base classes? What precisely is their significance?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education