- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
andon19
//main class
public class Devs {
public static void main (String[]args) {
Tryskel dTryskel=new Tryskel ();
Wyatt dWayatt=new Wyatt():
}
}
//1st class
public class Tryskel {
public boolean L2jdeveloper=true;
public boolean Professional=true;
public boolean Clever=true;
public boolean Kind=true;
public boolean Cool=true;
}
//2nd class
public class Wyatt {
public boolean L2jdeveloper=true;
public boolean Professional=true;
public boolean Creative=true;
public boolean Strict=true;
public boolean Tall=false; //making joke
}
//3rd class
public class Me extends Wyatt {
// SO everything i wrote here and declaration of Wyatt will be applied to me ?
//am i right?
}
Edited by andon192 answers to this question
Recommended Posts