<s>
Type	B-Application
generalization	I-Application
is	O
a	O
technique	O
commonly	O
used	O
in	O
refactoring	O
.	O
</s>
<s>
The	O
idea	O
is	O
to	O
draw	O
on	O
the	O
benefits	O
of	O
object-orientation	B-Language
and	O
make	O
more-generalized	O
types	O
,	O
thus	O
enabling	O
more	O
code	O
sharing	O
,	O
leading	O
to	O
better	O
maintainability	O
as	O
there	O
is	O
less	O
code	O
to	O
write	O
.	O
</s>
<s>
Type	B-Application
generalization	I-Application
refers	O
to	O
making	O
more	O
general	O
or	O
more	O
abstract	O
some	O
subset	O
of	O
the	O
traits	O
of	O
a	O
specific	O
type	O
.	O
</s>
<s>
An	O
example	O
of	O
generalizing	O
a	O
type	O
would	O
be	O
moving	O
a	O
method	B-Language
from	O
a	O
child	O
to	O
a	O
parent	O
class	O
for	O
common	O
use	O
by	O
all	O
the	O
parent	O
class	O
 '	O
children	O
,	O
not	O
just	O
the	O
original	O
child	O
.	O
</s>
<s>
Another	O
example	O
,	O
in	O
the	O
Java	B-Language
programming	I-Language
language	I-Language
,	O
would	O
be	O
access	O
to	O
an	O
object	O
via	O
an	O
interface	B-Application
which	O
is	O
n't	O
tied	O
into	O
a	O
specific	O
implementation	O
of	O
that	O
interface	B-Application
.	O
</s>
