So this might sounds like a n00b question, but I want to take 2 classes and merge them together.
Like so :
Ball oneBall = new Ball("red", 20);
Ball anotherBall = new Ball("blue",40);
Ball BigBall = new Ball(oneBall + anotherBall);
BigBall.size() //should say 60 right?
I know you would have something like this
class Ball{
public Ball(string Name , int size){}
// But to merge to of them?
public Ball(Ball firstBall, Ball secondBall){} //I know the arguments have to be added
{}
}
So my question is what is the overload(right?) suppose to look like?
Thanks,