Hey, I am currently trying to use certain BP’s and have to use a cast more specifically this is a cast from parent class to a child class but the cast fails. I am posting certain images which might be able to help with the problem for more clarity i am trying to attain something like this :
class A
{
public :
A(){}
void print()
{
cout<<"A Here";
}
};
class B :public A
{
B():A(){}
public :
void print()
{
cout<<"B Here";
}
};
int main() {
A* a = new A();
B* b = (B*)a;
b->print();
}
This works fine in c++ but i am having issue’s with BP’s
Here’s some picture’s for reference.