Map
Index
Random
Help
Topics
th

Topic: object-oriented prototypes

topics > computer science > programming > object-oriented programming > Group: type inheritance



Group:
data type
Group:
object-oriented programming

Topic:
abstraction by resemblance
Topic:
classification
Topic:
inheritance by delegation
Topic:
interface type
Topic:
knowledge representation by frames
Topic:
meaning by use
Topic:
non-hierarchical classification and multiple classification
Topic:
object-oriented fields
Topic:
object-oriented templates and containers
Topic:
prototyping
Topic:
restricted and extended types
Topic:
semi-structured text
Topic:
type reflection and introspection
Topic:
types of object-oriented classes

Notes

A prototype is an example object with functional behavior and state. It is easy and natural to create new objects using the prototype as a template.

A prototype may act as a trait or class or as a prototype for cloning. Self and Cecil can enforce the distinctions between trait, prototype, and object.

With prototypes, delegation inheritance behaves different than embedding inheritance. Delegation calls another object's methods using this object's states. Embedding creates a copy of the super class's state. With prototypes and delegation, the inherited object changes if the original state or delegation link changes. (cbb 1/01)


Related Topics up

Group: data type   (34 topics, 730 quotes)
Group: object-oriented programming   (26 topics, 822 quotes)

Topic: abstraction by resemblance (13 items)
Topic: classification (65 items)
Topic: inheritance by delegation (8 items)
Topic: interface type (50 items)
Topic: knowledge representation by frames (18 items)
Topic: meaning by use (58 items)
Topic: non-hierarchical classification and multiple classification (16 items)
Topic: object-oriented fields (28 items)
Topic: object-oriented templates and containers (27 items)
Topic: prototyping (18 items)
Topic: restricted and extended types (35 items)
Topic: semi-structured text (17 items)
Topic: type reflection and introspection (28 items)
Topic: types of object-oriented classes
(18 items)


Updated barberCB 10/04
Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.