Global Information Lookup Global Information

Fragile base class information


The fragile base class problem is a fundamental architectural problem of object-oriented programming systems where base classes (superclasses) are considered "fragile" because seemingly safe modifications to a base class, when inherited by the derived classes, 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.

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.

An alternative solution is to have an interface instead of superclass.

The fragile base class problem has been blamed on open recursion (dynamic dispatch of methods on this), with the suggestion that invoking methods on this 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 this) would be dynamically dispatched as usual.[1][2]

  1. ^ "Selective Open Recursion: A Solution to the Fragile Base Class Problem", Jonathan Aldrich
  2. ^ "Selective Open Recursion: A Solution to the Fragile Base Class Problem", Lambda the Ultimate

and 18 Related for: Fragile base class information

Request time (Page generated in 0.8548 seconds.)

Fragile base class

Last Update:

The fragile base class problem is a fundamental architectural problem of object-oriented programming systems where base classes (superclasses) are considered...

Word Count : 738

Fragile binary interface problem

Last Update:

example of software brittleness. This problem is more often called the fragile base class problem or FBC; however, that term has a wider sense. The problem...

Word Count : 1240

NPAPI

Last Update:

dependency on XPCOM led to certain dynamic linking issues (e.g. the fragile base class problem) which had to be solved before the plugin would work correctly...

Word Count : 2433

IBM System Object Model

Last Update:

way, SOM addresses the fragile binary interface problem that affects other library technology such as C++. SOM allows classes to be defined in one programming...

Word Count : 2128

FBC

Last Update:

American yacht club Florida Building Code Form-based code Fluidized bed combustion Fragile base class FBC Media, British public relations firm Frankfurter...

Word Count : 199

Codium fragile

Last Update:

Codium fragile, known commonly as green sea fingers, dead man's fingers, felty fingers, forked felt-alga, stag seaweed, sponge seaweed, green sponge,...

Word Count : 914

Masculine fragility

Last Update:

Masculine fragility is the anxiety among males who feel they do not meet cultural standards of masculinity. Evidence suggests that this concept is necessary...

Word Count : 1570

Fragile state

Last Update:

A fragile state or weak state is a country characterized by weak state capacity or weak state legitimacy leaving citizens vulnerable to a range of shocks...

Word Count : 5703

Base and superstructure

Last Update:

Marxist theory, society consists of two parts: the base (or substructure) and superstructure. The base refers to the mode of production which includes the...

Word Count : 3281

Fragile Things

Last Update:

Fragile Things: Short Fictions and Wonders is a collection of short stories and poetry by English author Neil Gaiman. It was published in the US and UK...

Word Count : 879

White Fragility

Last Update:

White Fragility: Why It's So Hard for White People to Talk About Racism is a 2018 book written by Robin DiAngelo about race relations in the United States...

Word Count : 2743

Leucocoprinus fragilissimus

Last Update:

Leucocoprinus fragilissimus, commonly known as the fragile dapperling, is a species of gilled mushroom in the family Agaricaceae. As with many of the...

Word Count : 1362

Microlasma fragile

Last Update:

Microlasma fragile is a species of symmetrical sessile barnacle in the family Pachylasmatidae. "Microlasma fragile". GBIF. Retrieved 2021-09-01. "World...

Word Count : 43

Nine Inch Nails

Last Update:

Broken (1992). The following albums, The Downward Spiral (1994) and The Fragile (1999), were released to critical acclaim and commercial success. Following...

Word Count : 18308

Buccinum fragile

Last Update:

Buccinum fragile is a species of sea snail, a marine gastropod mollusk in the family Buccinidae, the true whelks. Buccinum fragile G. O. Sars, 1878. Retrieved...

Word Count : 35

General purpose frigate program

Last Update:

an ageing and increasingly fragile surface combatant fleet". The government also agreed to reduce the number of Hunter-class frigates to be acquired from...

Word Count : 1388

Topical steroid

Last Update:

classified based on their skin vasoconstrictive abilities. There are numerous topical steroid products. All the preparations in each class have the same...

Word Count : 1364

Lissoclinum fragile

Last Update:

Lissoclinum fragile is a species of tunicate. This species was named by Willard G. Van Name in 1902. This species is a colonial ascidian. This means that...

Word Count : 112

PDF Search Engine © AllGlobal.net