Umm sorry yea i kinda messed it up.
What i mean is I wanna make a class with a fucntion that can return an instance of another class.
The function must be in the first class.
class CLASS_A
{
//declare stuff here;
}
class CLASS_B
{
CLASS_A func();//RETURNS AN INSTANCE OF CLASS_A
}
CLASS _B cls_b;
CLASS_A cls_a = cls_b.func();