N
news
I need ... maybe this construction possible????
class OrderHeader
{
....
// method, that passing initialized base class (OrderHeader) into
new Order
public Order ConvertToOrder()
{
return (Order) this;
}
}
class Order : OrderHeader
{
....
}
Can I simply convert base class into inherited class???
Or how to pass initialized base class into new inherited_class ????
Thanks
Mike
class OrderHeader
{
....
// method, that passing initialized base class (OrderHeader) into
new Order
public Order ConvertToOrder()
{
return (Order) this;
}
}
class Order : OrderHeader
{
....
}
Can I simply convert base class into inherited class???
Or how to pass initialized base class into new inherited_class ????
Thanks
Mike