Science Fair Project Encyclopedia
Slicing
In computer science, slicing is an operation to slice off a target value by size of the base type, thus extra parts will be gone.
For example, in C++
class A
{
int age;
String name;
};
class B : public A
{
bool is_male;
};
B b;
A a;
a = b; // slicing occurs.
See also: Object-oriented programming
10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details


