<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki1463/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=24.50.56.74</id>
	<title>wiki1463 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki1463/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=24.50.56.74"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Special:Contributions/24.50.56.74"/>
	<updated>2026-12-04T12:42:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki1463/index.php?title=Strategy_pattern&amp;diff=118949</id>
		<title>Strategy pattern</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Strategy_pattern&amp;diff=118949"/>
		<updated>2025-10-15T15:34:07Z</updated>

		<summary type="html">&lt;p&gt;24.50.56.74: /* Strategy and open–closed principle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{short description|Software design pattern}}&lt;br /&gt;
In [[computer programming]], the &#039;&#039;&#039;strategy pattern&#039;&#039;&#039; (also known as the &#039;&#039;&#039;policy pattern&#039;&#039;&#039;) is a [[behavioral design pattern|behavioral]] [[design pattern (computer science)|software design pattern]] that enables selecting an [[algorithm]] at runtime. Instead of implementing a single algorithm directly, code receives runtime instructions as to which in a family of algorithms to use.&amp;lt;ref&amp;gt;{{cite web|title=The Strategy design pattern - Problem, Solution, and Applicability|url=http://w3sdesign.com/?gr=b09&amp;amp;ugr=proble|website=w3sDesign.com|access-date=2017-08-12}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Strategy lets the algorithm vary independently from clients that use it.&amp;lt;ref&amp;gt;Eric Freeman, Elisabeth Freeman, Kathy Sierra and Bert Bates, &#039;&#039;Head First Design Patterns&#039;&#039;, First Edition, Chapter 1, Page 24, O&#039;Reilly Media, Inc, 2004. {{ISBN|978-0-596-00712-6}}&amp;lt;/ref&amp;gt; Strategy is one of the patterns included in the influential book &#039;&#039;[[Design Patterns]]&#039;&#039; by Gamma et al.&amp;lt;ref name=&amp;quot;GoF&amp;quot;&amp;gt;{{cite book|author=Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides|title=Design Patterns: Elements of Reusable Object-Oriented Software|year=1994|publisher=Addison Wesley|isbn=0-201-63361-2|pages=[https://archive.org/details/designpatternsel00gamm/page/315 315ff]|url-access=registration|url=https://archive.org/details/designpatternsel00gamm/page/315}}&amp;lt;/ref&amp;gt; that popularized the concept of using design patterns to describe how to design flexible and reusable object-oriented software. Deferring the decision about which algorithm to use until runtime allows the calling code to be more flexible and reusable.&lt;br /&gt;
&lt;br /&gt;
For instance, a class that performs validation on incoming data may use the strategy pattern to select a validation algorithm depending on the type of data, the source of the data, user choice, or other discriminating factors. These factors are not known until runtime and may require radically different validation to be performed. The validation algorithms (strategies), encapsulated separately from the validating object, may be used by other validating objects in different areas of the system (or even different systems) without [[Duplicate code|code duplication]].&lt;br /&gt;
&lt;br /&gt;
Typically, the strategy pattern stores a reference to code in a data structure and retrieves it. This can be achieved by mechanisms such as the native [[function pointer]], the [[first-class function]], classes or class instances in [[object-oriented programming]] languages, or accessing the language implementation&#039;s internal storage of code via [[Reflection (computer science)|reflection]].&lt;br /&gt;
&lt;br /&gt;
== Structure ==&lt;br /&gt;
=== UML class and sequence diagram ===&lt;br /&gt;
[[File:w3sDesign Strategy Design Pattern UML.jpg|frame|none|A sample UML class and sequence diagram for the Strategy design pattern.&amp;lt;ref&amp;gt;{{cite web|title=The Strategy design pattern - Structure and Collaboration|url=http://w3sdesign.com/?gr=b09&amp;amp;ugr=struct|website=w3sDesign.com|access-date=2017-08-12}}&amp;lt;/ref&amp;gt;]]&lt;br /&gt;
In the above [[Unified Modeling Language|UML]] [[class diagram]], the &amp;lt;code&amp;gt;Context&amp;lt;/code&amp;gt; class does not implement an algorithm directly.&lt;br /&gt;
Instead, &amp;lt;code&amp;gt;Context&amp;lt;/code&amp;gt; refers to the &amp;lt;code&amp;gt;Strategy&amp;lt;/code&amp;gt; interface for performing an algorithm (&amp;lt;code&amp;gt;strategy.algorithm()&amp;lt;/code&amp;gt;), which makes &amp;lt;code&amp;gt;Context&amp;lt;/code&amp;gt; independent of how an algorithm is implemented.&lt;br /&gt;
The &amp;lt;code&amp;gt;Strategy1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Strategy2&amp;lt;/code&amp;gt; classes implement the &amp;lt;code&amp;gt;Strategy&amp;lt;/code&amp;gt; interface, that is, implement (encapsulate) an algorithm.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The [[Unified Modeling Language|UML]] [[sequence diagram]]&lt;br /&gt;
shows the runtime interactions: The &amp;lt;code&amp;gt;Context&amp;lt;/code&amp;gt; object delegates an algorithm to different &amp;lt;code&amp;gt;Strategy&amp;lt;/code&amp;gt; objects. First, &amp;lt;code&amp;gt;Context&amp;lt;/code&amp;gt; calls &amp;lt;code&amp;gt;algorithm()&amp;lt;/code&amp;gt; on a &amp;lt;code&amp;gt;Strategy1&amp;lt;/code&amp;gt; object,&lt;br /&gt;
which performs the algorithm and returns the result to &amp;lt;code&amp;gt;Context&amp;lt;/code&amp;gt;. &lt;br /&gt;
Thereafter, &amp;lt;code&amp;gt;Context&amp;lt;/code&amp;gt; changes its strategy and calls &amp;lt;code&amp;gt;algorithm()&amp;lt;/code&amp;gt; on a &amp;lt;code&amp;gt;Strategy2&amp;lt;/code&amp;gt; object,&lt;br /&gt;
which performs the algorithm and returns the result to &amp;lt;code&amp;gt;Context&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Class diagram ===&lt;br /&gt;
[[Image:Strategy Pattern in UML.png|thumb|none|350px|Strategy Pattern in [[Unified Modeling Language|UML]] ]]&amp;lt;ref&amp;gt;{{cite web | url=http://www.mcdonaldland.info/2007/11/28/40/ | title=Design Patterns Quick Reference – McDonaldLand }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Strategy pattern in LePUS3.gif|thumb|none|400px|Strategy pattern in LePUS3&lt;br /&gt;
([http://lepus.org.uk/ref/legend/legend.xml legend])]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--== Example ==&lt;br /&gt;
 Wikipedia is not a list of examples. Do not add examples from your favorite programming language here; this page exists to explain the design pattern, not to show how it interacts with subtleties of every language under the sun. Feel free to add examples here: http://en.wikibooks.org/wiki/Computer_Science_Design_Patterns/Strategy --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Strategy and open–closed principle ==&lt;br /&gt;
[[Image:StrategyPattern IBrakeBehavior.svg|thumb|400px|Accelerate and [[brake]] behaviors must be declared in each new [[car model]].]]&lt;br /&gt;
According to the strategy pattern, the behaviors of a class should not be inherited. Instead, they should be encapsulated using interfaces. This is compatible with the [[open–closed principle]] (OCP), which proposes that classes should be open for extension but closed for modification.&lt;br /&gt;
&lt;br /&gt;
As an example, consider a car class. Two possible functionalities for car are &#039;&#039;brake&#039;&#039; and &#039;&#039;accelerate&#039;&#039;. Since accelerate and brake behaviors change frequently between models, a common approach is to implement these behaviors in subclasses. This approach has significant drawbacks; accelerate and brake behaviors must be declared in each new car model. The work of managing these behaviors increases greatly as the number of models increases, and requires code to be duplicated across models. Additionally, it is not easy to determine the exact nature of the behavior for each model without investigating the code in each.&lt;br /&gt;
&lt;br /&gt;
The strategy pattern uses [[composition over inheritance|composition instead of inheritance]]. In the strategy pattern, behaviors are defined as separate interfaces and specific classes that implement these interfaces. This allows better decoupling between the behavior and the class that uses the behavior. The behavior can be changed without breaking the classes that use it, and the classes can switch between behaviors by changing the specific implementation used without requiring any significant code changes. Behaviors can also be changed at runtime as well as at design-time. For instance, a car object&#039;s brake behavior can be changed from &amp;lt;code&amp;gt;BrakeWithABS()&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;Brake()&amp;lt;/code&amp;gt; by changing the &amp;lt;code&amp;gt;brakeBehavior&amp;lt;/code&amp;gt; member to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
Brake* brakeBehavior = new Brake();&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
package org.wikipedia.examples;&lt;br /&gt;
&lt;br /&gt;
/* Encapsulated family of Algorithms&lt;br /&gt;
 * Interface and its implementations&lt;br /&gt;
 */&lt;br /&gt;
interface IBrakeBehavior {&lt;br /&gt;
    public void brake();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class BrakeWithABS implements IBrakeBehavior {&lt;br /&gt;
    public void brake() {&lt;br /&gt;
        System.out.println(&amp;quot;Brake with ABS applied&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class Brake implements IBrakeBehavior {&lt;br /&gt;
    public void brake() {&lt;br /&gt;
        System.out.println(&amp;quot;Simple Brake applied&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Client that can use the algorithms above interchangeably&lt;br /&gt;
abstract class Car {&lt;br /&gt;
    private IBrakeBehavior brakeBehavior;&lt;br /&gt;
&lt;br /&gt;
    public Car(IBrakeBehavior brakeBehavior) {&lt;br /&gt;
      this.brakeBehavior = brakeBehavior;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public void applyBrake() {&lt;br /&gt;
        brakeBehavior.brake();&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public void setBrakeBehavior(IBrakeBehavior brakeType) {&lt;br /&gt;
        this.brakeBehavior = brakeType;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Client 1 uses one algorithm (Brake) in the constructor&lt;br /&gt;
class Sedan extends Car {&lt;br /&gt;
    public Sedan() {&lt;br /&gt;
        super(new Brake());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Client 2 uses another algorithm (BrakeWithABS) in the constructor&lt;br /&gt;
class SUV extends Car {&lt;br /&gt;
    public SUV() {&lt;br /&gt;
        super(new BrakeWithABS());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Using the Car example&lt;br /&gt;
public class CarExample {&lt;br /&gt;
    public static void main(String[] arguments) {&lt;br /&gt;
        Car sedanCar = new Sedan();&lt;br /&gt;
        sedanCar.applyBrake(); // This will invoke class &amp;quot;Brake&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        Car suvCar = new SUV();&lt;br /&gt;
        suvCar.applyBrake(); // This will invoke class &amp;quot;BrakeWithABS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        // set brake behavior dynamically&lt;br /&gt;
        suvCar.setBrakeBehavior(new Brake());&lt;br /&gt;
        suvCar.applyBrake(); // This will invoke class &amp;quot;Brake&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Dependency injection]]&lt;br /&gt;
* [[Higher-order function]]&lt;br /&gt;
* [[List of object-oriented programming terms]]&lt;br /&gt;
* [[Mixin]]&lt;br /&gt;
* [[Policy-based design]]&lt;br /&gt;
* [[Type class]]&lt;br /&gt;
* [[Entity–component–system]]&lt;br /&gt;
* [[Composition over inheritance]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Commonscat|Strategy (design pattern)}}&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
{{wikibooks|Computer Science Design Patterns|Strategy|Strategy implementations in various languages}}&lt;br /&gt;
* [http://design-patterns-with-uml.blogspot.com.ar/2013/02/strategy-pattern.html Strategy Pattern in UML] {{in lang|es}}&lt;br /&gt;
* {{cite web |last1=Geary |first1=David |date=2002-04-26 |df=mdy |url=https://www.infoworld.com/article/2074195/strategy-for-success.html |title=Strategy for success |department=Java Design Patterns |work=[[JavaWorld]] |access-date=2020-07-20}}&lt;br /&gt;
* [http://www.adamtornhill.com/Patterns%20in%20C%203,%20STRATEGY.pdf Strategy Pattern for C article]&lt;br /&gt;
* [http://martinfowler.com/refactoring/catalog/replaceTypeCodeWithStateStrategy.html Refactoring: Replace Type Code with State/Strategy]&lt;br /&gt;
* {{webarchive |url=https://web.archive.org/web/20170415154927/http://www.aleccove.com/2016/02/the-strategy-pattern-in-javascript |title=The Strategy Design Pattern}} Implementation of the Strategy pattern in JavaScript&lt;br /&gt;
&lt;br /&gt;
{{Design Patterns Patterns}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Software design patterns]]&lt;br /&gt;
[[Category:Articles with example C Sharp code]]&lt;br /&gt;
[[Category:Articles with example Java code]]&lt;/div&gt;</summary>
		<author><name>24.50.56.74</name></author>
	</entry>
	<entry>
		<id>http://debianws.lexgopc.com/wiki1463/index.php?title=Fragile_base_class&amp;diff=203316</id>
		<title>Fragile base class</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Fragile_base_class&amp;diff=203316"/>
		<updated>2025-09-26T19:23:39Z</updated>

		<summary type="html">&lt;p&gt;24.50.56.74: /* Java example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Short description|Object-oriented programming system problem}}{{More sources|date=November 2024}}{{About|the architectural problem|the language implementation problem|Fragile binary interface problem}}The &#039;&#039;&#039;fragile base class problem&#039;&#039;&#039; is a fundamental architectural problem of [[object-oriented programming]] systems where base classes ([[superclass (computer science)|superclass]]es) are considered &amp;quot;fragile&amp;quot; because seemingly safe modifications to a base class, when inherited by the [[subclass (computer science)|derived class]]es, may cause the derived classes to malfunction. The programmer cannot determine whether a base class change is safe simply by examining in isolation the methods of the base class.&lt;br /&gt;
&lt;br /&gt;
One possible solution is to make instance variables private to their defining class and force subclasses to use accessors to modify superclass states. A language could also make it so that subclasses can control which inherited methods are exposed publicly. These changes prevent subclasses from relying on implementation details of superclasses and allow subclasses to expose only those superclass methods that are applicable to themselves.&lt;br /&gt;
&lt;br /&gt;
An alternative solution is to have an [[Interface (object-oriented programming)|interface]] instead of superclass.&lt;br /&gt;
&lt;br /&gt;
The fragile base class problem has been blamed on [[open recursion]] (dynamic dispatch of methods on &amp;lt;code&amp;gt;[[this (computer programming)|this]]&amp;lt;/code&amp;gt;), with the suggestion that invoking methods on &amp;lt;code&amp;gt;this&amp;lt;/code&amp;gt; default to closed recursion (static dispatch, early binding) rather than open recursion (dynamic dispatch, late binding), only using open recursion when it is specifically requested; external calls (not using &amp;lt;code&amp;gt;this&amp;lt;/code&amp;gt;) would be dynamically dispatched as usual.&amp;lt;ref&amp;gt;&amp;quot;[https://www.cs.cmu.edu/~aldrich/papers/selective-open-recursion.pdf Selective Open Recursion: A Solution to the Fragile Base Class Problem]&amp;quot;, Jonathan Aldrich&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;&amp;quot;[http://lambda-the-ultimate.org/classic/message12271.html Selective Open Recursion: A Solution to the Fragile Base Class Problem]&amp;quot;, &#039;&#039;[http://lambda-the-ultimate.org/ Lambda the Ultimate]&#039;&#039;&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Java example==&lt;br /&gt;
The following trivial example is written in the [[Java programming language]] and shows how a seemingly safe modification of a base class can cause an inheriting subclass to malfunction by entering an [[infinite recursion]] which will result in a [[stack overflow]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
class Base {&lt;br /&gt;
    private int counter = 0;&lt;br /&gt;
&lt;br /&gt;
    void inc1() {&lt;br /&gt;
        counter++;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void inc2() {&lt;br /&gt;
        counter++;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class Derived extends Base {&lt;br /&gt;
    @Override&lt;br /&gt;
    void inc2() {&lt;br /&gt;
        inc1();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Calling the dynamically bound method &#039;&#039;inc2()&#039;&#039; on an instance of &#039;&#039;Derived&#039;&#039; will correctly increase the field &#039;&#039;counter&#039;&#039; by one. If however the code of the superclass is changed in the following way:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
class Base {&lt;br /&gt;
&lt;br /&gt;
    private int counter = 0;&lt;br /&gt;
&lt;br /&gt;
    void inc1() {&lt;br /&gt;
        inc2();&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void inc2() {&lt;br /&gt;
        counter++;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
a call to the dynamically bound method &#039;&#039;inc2()&#039;&#039; on an instance of &#039;&#039;Derived&#039;&#039; will cause an infinite recursion between itself and the method &#039;&#039;inc1()&#039;&#039; of the super-class and eventually cause a stack overflow. This problem could have been avoided, by declaring the methods in the superclass as &#039;&#039;&#039;final&#039;&#039;&#039;, which would make it impossible for a sub-class to override them. However, this is not always desirable or possible. Therefore, it is good practice for super-classes to avoid changing calls to dynamically-bound methods.&lt;br /&gt;
&lt;br /&gt;
==Solutions==&lt;br /&gt;
* [[Objective-C]] has [[Objective-C#Categories|categories]] as well as [[Objective-C#Non-fragile instance variables|non-fragile instance variables]].&lt;br /&gt;
* [[Component Pascal]] deprecates [[Superclass (computer science)|superclass calls]].&lt;br /&gt;
* [[Java (programming language)|Java]], [[C++]] (Since C++11) and [[D (programming language)|D]] allow inheritance or overriding a class method to be prohibited by labeling a declaration of a class or method, respectively, with the keyword &amp;quot;&amp;lt;code&amp;gt;final&amp;lt;/code&amp;gt;&amp;quot;. In the book &#039;&#039;Effective Java&#039;&#039;, author [[Joshua Bloch]] writes (in item 17) that programmers should &amp;quot;Design and document for inheritance or else prohibit it&amp;quot;.&lt;br /&gt;
* [[C Sharp (programming language)|C#]] and [[VB.NET]] like Java have &amp;quot;&amp;lt;code&amp;gt;sealed&amp;lt;/code&amp;gt;&amp;quot; and &amp;quot;&amp;lt;code&amp;gt;Not Inheritable&amp;lt;/code&amp;gt;&amp;quot; class declaration keywords to prohibit inheritance, and require a subclass to use keyword &amp;quot;&amp;lt;code&amp;gt;override&amp;lt;/code&amp;gt;&amp;quot; on overriding methods,&amp;lt;ref&amp;gt;{{Cite web | url=https://msdn.microsoft.com/en-us/library/ebca9ah3.aspx | title=Override modifier - C# Reference }}&amp;lt;/ref&amp;gt; the same solution later adopted by Scala.&lt;br /&gt;
* [[Scala (programming language)|Scala]] require a subclass to use keyword &amp;quot;&amp;lt;code&amp;gt;override&amp;lt;/code&amp;gt;&amp;quot; explicitly in order to override a parent class method. In the book &amp;quot;Programming in Scala, 2nd Edition&amp;quot;, the author writes that (with modifications here) If there was no method f(), the client’s original implementation of method f() could not have had an override modifier. Once you add the f() method to the second version of your library class, a recompile of the client code would give an compile error instead of wrong behavior.&lt;br /&gt;
* In [[Kotlin (programming language)|Kotlin]] classes and methods are final by default. To enable the class inheritance, the class should be marked with the &amp;lt;code&amp;gt;open&amp;lt;/code&amp;gt; modifier. Likewise, a method should be marked as &amp;lt;code&amp;gt;open&amp;lt;/code&amp;gt; to allow overriding of the method.&lt;br /&gt;
* [[Julia (programming language)|Julia]] allows only subtyping of abstract types and uses composition as an alternative to [[Inheritance (object-oriented programming)|inheritance]]. It however has [[multiple dispatch]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Fragile binary interface problem]]&lt;br /&gt;
* [[Implementation inheritance]]&lt;br /&gt;
* [[Inheritance semantics]]&lt;br /&gt;
* [[Software brittleness]]&lt;br /&gt;
* [[Virtual inheritance]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* {{cite conference |last1=Mikhajlov |first1=Leonid |last2=Sekerinski |first2=Emil |title=ECOOP&#039;98 — Object-Oriented Programming |chapter=A Study of The Fragile Base Class Problem |book-title=ECOOP’98 — Object-Oriented Programming |conference=ECOOP 1998 |series=[[Lecture Notes in Computer Science|LCNS]] |volume=1445 |year=1998 |pages=355–382 |issn=0302-9743 |doi=10.1007/BFb0054099 |isbn=978-3-540-64737-9 |id={{QID|29543920}} |url=http://www.cas.mcmaster.ca/~emil/Publications_files/MikhajlovSekerinski98FragileBaseClassProblem.pdf |access-date=2020-07-21}}&lt;br /&gt;
* {{cite web |last1=Holub |first1=Allen |date=2003-08-01 |df=mdy |url=https://www.infoworld.com/article/2073649/why-extends-is-evil.html |title=Why extends is evil |department=Java Toolbox |work=[[JavaWorld]] |access-date=2020-07-21}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Fragile Base Class}}&lt;br /&gt;
[[Category:Class (computer programming)]]&lt;/div&gt;</summary>
		<author><name>24.50.56.74</name></author>
	</entry>
</feed>