Browse Prior Art Database

Providing Virtual Classes for Discrete Objects without the need for Subclassing

IP.com Disclosure Number: IPCOM000104527D
Original Publication Date: 1993-Apr-01
Included in the Prior Art Database: 2005-Mar-19
Document File: 1 page(s) / 44K

Publishing Venue

IBM

Related People

Henshaw, SF: AUTHOR [+2]

Abstract

A method for adding properties and behaviors to existing classes and objects, without needing subclassing, is disclosed.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 73% of the total text.

Providing Virtual Classes for Discrete Objects without the need for Subclassing

      A method for adding properties and behaviors to existing
classes and objects, without needing subclassing, is disclosed.

      In traditional systems, if a developer wished to add additional
characteristics to an object, a new class had to be created,
originating from a super class as a base to build upon.  This results
in an explosion of class creation, simply to add properties to
objects.

      A good example using the disclosed solution is the creation of
a password protected folder from the standard WPFolder class.  A
Virtual Class is created called VCpassword.  The class provides an
enveloping mechanism which can be absorbed into existing class based
objects.  Virtual classes cannot exist as an instantiation, it must
envelope an existing object or class.  An envelope template is
provided which a user can drag to an existing Object to inherit the
characteristics of the Virtual Class.  To create a WPFolder Class
object with a password characteristic the user can create a Folder
Object using the WP Folder Class template then drag the VCpassword
envelope template onto the Object.  The object is now a password
protected folder object.  In addition, the user could drag the
VCpassword template onto an existing Class Template to create a
template which will produce class objects with the VCpassword
inherited characteristic.  The problem solved by this invention is
the r...