1/8/15

Type, State, Context, Object & Class.

in context of this blog:

def. type of an object is class(es) definition (code) in proper version.

def. state is a value from set of all possible values of all object's inner variables. state is called also colour (see also, if You wish: Stitie Machine).

def. exclusive context is outer state (same as state, except that we consider global variables & variables in containing object - in object that contains our object, etc... we can also say that 'application runs in context of this computer system', for example).

def. inclusive context is context with our object inside.

def. context is either inclusive context or exclusive context.

something can be included in a certain context.

examples:
- in context of computer system would be: in the Internet,
- in context of computer system would be: in the Company that owns computer system,
- in state of computer system would be: in memory of computer system.


i think these definitions should be part of 'Ola AH' Programming Language.

---

objects have & are defined by: type & state.

object is runtime instance of it's class.

we can think about classes as about blueprints for objects.

one blueprint is enough to create many objects, that represent something.

each of objects is configured (prepared, set-up) differently perhaps, having different state.


---

see also, if You wish: Objects, Classes, Modelling, Gardener's Functions.

2 comments:

  1. (EN) exclusive context = (PL) kontekst niezawierający.
    (EN) inclusive context = (PL) kontekst zawierający.
    (EN) blueprint = (PL) plan, badania naukowe, opracowanie.

    ReplyDelete
  2. (EN) something can be included in a certain context. = (PL) coś może zostać osadzone w pewnym kontekście.

    ReplyDelete