2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage
userimage

I am not sure the reason you want the answer for this.As of my experience on this I will share my thought on this may be you can find your answer from this,

e.g I have some code snippet like,

public Fraction (int a1 , int b1)   {
    a = a1;
    b = b1;
}

Fraction fr = new Fraction (new  Fraction(1,1), new Fraction(2,2)    )

According to your question no its not possible only by seeing the above code and as we know there some alternate to resolve the issues,you can achieve simply by adding  one more constructor like,

public Fraction (Fraction f1 , Fraction f2)

Answer is