OCP
{"name":"OCP", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Pour quelle classe la méthode main compilerai ? public static void main(String[] args) { BigCat cat = new BitCat(); System.out.println(cat.name);}package cat;public class BigCat { public String name = \"cat\";}package cat.species;public class Lynx extends BigCat {}package cat;public class CatAdmirer {}package mouse;public class Mouse {}, Pour quelle classe la méthode main compilerai ? public static void main(String[] args) { BigCat cat = new BitCat(); System.out.println(cat.hasFur);}package cat;public class BigCat { protected boolean hasFur = true;}package cat.species;public class Lynx extends BigCat {}package cat;public class CatAdmirer {}package mouse;public class Mouse {}, Pour quelle classe la méthode main compilerai ? public static void main(String[] args) { BigCat cat = new BitCat(); System.out.println(cat.hasPawn);}package cat;public class BigCat { boolean hasPawn = true;}package cat.species;public class Lynx extends BigCat {}package cat;public class CatAdmirer {}package mouse;public class Mouse {}","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}