How to access object slicing?
Posted
by kam
on Stack Overflow
See other posts from Stack Overflow
or by kam
Published on 2010-05-07T09:56:42Z
Indexed on
2010/05/07
14:08 UTC
Read the original article
Hit count: 187
c++
class A
{
public:
int i;
int j;
};
class B : public A
{
public:
int k;
};
main()
{
A *a = new B;
}
is it possible to access slicing data?
© Stack Overflow or respective owner