An extension to OOP
From: Booted Cat (coolspeech_at_hotmail.com)
Date: 04/20/04
- Next message: Dmitry A. Kazakov: "Re: An extension to OOP"
- Previous message: Booted Cat: "An extension to OOP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Apr 2004 00:11:59 -0700
AN EXTENSION TO OOP
Recently I had an inspiration of viewing a class as a set of
properties (A property can be a member function, a member variable,
etc). In this view, a new class can be declared not only as a
COMBINATION of two or more base classes, but also as:
1. a UNION class of two or more base classes, which remains only one
copy for duplicated base properties;
2. a INTERSECTION class of two or more base classes, whose properties
are previously the duplicated base properties;
3. a RELATIVE COMPLEMENT class of base class B relative to base class
A, which keeps the A\B (relative complement) set of properties;
4. a SUBCLASS or a SUPERCLASS of a base class X, by providing a subset
or a superset of properties from class X.
5. Any other type of set borrowed from the set theory that is OOP
significant.
By implementing the above new approaches to class declaration, OOP
will be more flexible.
Yao Ziyuan,
First-Year Computer Science B.S. Student of Fudan University
info@babelcode.org
- Next message: Dmitry A. Kazakov: "Re: An extension to OOP"
- Previous message: Booted Cat: "An extension to OOP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|