[Solved] If statements inside of constructors


If the constructor runs , it itself means that an object has been instantiated.
The constructor of a class is called it itself means that the object has been created. So, keep it simply..

public class Test 
{
    public float a1;
    public int b1;
    public double c1;
    public Boolean ifConsUsed = false;

    public Test(float a, int b, double c, Main app)
   {
        a1 = a; b1 = b; c1 = c; applet = app;
        ifConsUsed = true;
   }
}

0

solved If statements inside of constructors