on Monday, July 26, 2010 at 3:44pm
So called Small Group (abbreviated as SG hereafter) is somewhat analog to "class" in programming language.
There are 4 attributes for a SG:
1. Name
The name of a SG, explicit declaration is not necessary.
In some cases it might not even be a single, specific name.
The only necessity of a name is the ability to refer to this SG
when this name is used with the SG.
2. Access Method
Can be private, protected, and public.
Again there is no clear-cut distinction among them.
Generally private is strictly for this SG only, while public
is without any access restriction. Protected is between
these two. The selection of type of method is subject
to the purpose of method.
For example, when SG is about to act on some
specific target, a protected method is usually defined.
Because by doing so, only the target and SG will be involved
in this method, while the interaction between this SG and
the target will be protected from other irrelevant classes.
3. Data Member
Abstractly, it is a finite set of members of this SG.
Similar to the name, the definition is not necessarily clear-cut.
But the definition should be at least well-defined within this SG,
therefore when this SG is running there should be no confusion
whether or not an object belongs to this SG.
4. Member Function
Mathematically, a member function is a function which has
at least one member of this SG as its argument.
Functions whose all arguments are member of SG is sometimes
called intro-SG function, while functions involve external arguments
are called extro-SG function.
For an extro-SG function, usually the name or the data member
of the SG is required as discriminative tool. However in case of
intro-SG function is optional and most of the time for robustness only.
(in case an external object being called by an intro-SG function)
Subclass:
Subclass is a derived class from its "patriclass" (father class).
It can inherit members, methods, and functions (sometimes called legacy)
from its father class.
It can also modify, add, or subtract legacy for its own purpose.
This is just a rough idea about SG, there are numerous examples, which
we will skip here. To wrap up, here the author postulates an axiom.
Axiom 1. (extro-SG function axiom)
An extro-SG function contains only one SG member object will be called
by another function that has another SG member as its argument.
On the other hand, using this axiom, we can say, a function that
calls exactly one SG member is *NOT* a member function of this SG.
(to be continued, all rights reserved and do NOT copy, share, or even secretly
copy-and-paste-then-mail back)
There are 4 attributes for a SG:
1. Name
The name of a SG, explicit declaration is not necessary.
In some cases it might not even be a single, specific name.
The only necessity of a name is the ability to refer to this SG
when this name is used with the SG.
2. Access Method
Can be private, protected, and public.
Again there is no clear-cut distinction among them.
Generally private is strictly for this SG only, while public
is without any access restriction. Protected is between
these two. The selection of type of method is subject
to the purpose of method.
For example, when SG is about to act on some
specific target, a protected method is usually defined.
Because by doing so, only the target and SG will be involved
in this method, while the interaction between this SG and
the target will be protected from other irrelevant classes.
3. Data Member
Abstractly, it is a finite set of members of this SG.
Similar to the name, the definition is not necessarily clear-cut.
But the definition should be at least well-defined within this SG,
therefore when this SG is running there should be no confusion
whether or not an object belongs to this SG.
4. Member Function
Mathematically, a member function is a function which has
at least one member of this SG as its argument.
Functions whose all arguments are member of SG is sometimes
called intro-SG function, while functions involve external arguments
are called extro-SG function.
For an extro-SG function, usually the name or the data member
of the SG is required as discriminative tool. However in case of
intro-SG function is optional and most of the time for robustness only.
(in case an external object being called by an intro-SG function)
Subclass:
Subclass is a derived class from its "patriclass" (father class).
It can inherit members, methods, and functions (sometimes called legacy)
from its father class.
It can also modify, add, or subtract legacy for its own purpose.
This is just a rough idea about SG, there are numerous examples, which
we will skip here. To wrap up, here the author postulates an axiom.
Axiom 1. (extro-SG function axiom)
An extro-SG function contains only one SG member object will be called
by another function that has another SG member as its argument.
On the other hand, using this axiom, we can say, a function that
calls exactly one SG member is *NOT* a member function of this SG.
(to be continued, all rights reserved and do NOT copy, share, or even secretly
copy-and-paste-then-mail back)
沒有留言:
張貼留言