The Fragile Base Class Problem and Its Solution

نویسندگان

  • Leonid Mikhajlov
  • Emil Sekerinski
چکیده

In this paper we study the fragile base class problem. This problem occurs in open object-oriented systems employing code inheritance as an implementation reuse mechanism. System developers unaware of extensions to the system developed by its users may produce a seemingly acceptable revision of a base class which may damage its extensions. The fragile base class problem becomes apparent during maintenance of open object-oriented systems, but requires consideration during design. We formulate the fragile base class problem in terms of a exibility property. By means of ve orthogonal examples demostrating that the exibility property does not hold, we introduce requirements for disciplining inheritance. We extend the re nement calculus to accommodate for classes, objects, class-based inheritance, and class re nement. We formulate and formally prove a exibility theorem showing that the restrictions we impose on inheritance are su cient to permit substituting a base class with its revision in presence of extension classes. We also present three check lists for system designers, developers, and extenders to allow application of our results in practice informally.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Study of The Fragile Base Class Problem

In this paper we study the fragile base class problem. This problem occurs in open object-oriented systems employing code inheritance as an implementation reuse mechanism. System developers unaware of extensions to the system developed by its users may produce a seemingly acceptable revision of a base class which may damage its extensions. The fragile base class problem becomes apparent during ...

متن کامل

Selective Open Recursion: A Solution to the Fragile Base Class Problem

Current object-oriented languages do not fully protect the implementation details of a class from its subclasses, making it difficult to evolve that implementation without breaking subclass code. Previous solutions to the so-called fragile base class problem specify those implementation dependencies, but do not hide implementation details in a way that allows effective software evolution. In th...

متن کامل

NON-FRAGILE GUARANTEED COST CONTROL OF T-S FUZZY TIME-VARYING DELAY SYSTEMS WITH LOCAL BILINEAR MODELS

This paper focuses on the non-fragile guaranteed cost control problem for a class of T-S fuzzy time-varying delay systems with local bilinear models. The objective is to design a non-fragile guaranteed cost state feedback controller via the parallel distributed compensation (PDC) approach such that the closed-loop system is delay-dependent asymptotically stable and the closed-loop performance i...

متن کامل

Some properties of band matrix and its application to the numerical solution one-dimensional Bratu's problem

A Class of new methods based on a septic non-polynomial spline function for the numerical solution one-dimensional Bratu's problem are presented. The local truncation errors and the methods of order 2th, 4th, 6th, 8th, 10th, and 12th, are obtained. The inverse of some band matrixes are obtained which are required in proving the convergence analysis of the presented method. Associated boundary f...

متن کامل

An Improved Particle Swarm Optimization for a Class of Capacitated Vehicle Routing Problems

Vehicle Routing Problem (VRP) is addressed to a class of problems for determining a set of vehicle routes, in which each vehicle departs from a given depot, serves a given set of customers, and returns back to the same depot. On the other hand, simultaneous delivery and pickup problems have drawn much attention in the past few years due to its high usage in real world cases. This study, therefo...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997