please solve fast 🙏🏼
Posted: Tue Jul 05, 2022 10:27 am
please solve fast 
QUESTION 1 Assume that class Person has following two private data fields: private String name; private int cpr; and following constructor: public Person(String n, int c) { name = n; cpr = c; } Now, we want to write a class called Employee that inherits the properties of class Person having following two data fields: private String position; private double salary; The constructor of class Employee can be written as follows: © ª public Employee(String n, int c, String p, double s) { this(n, c); position = p; salary = m; } © b. public Employee(String n, int c, String p, double s) { super(n, c); position = p; salary = s; } Ⓒc public Employee(String n, int c, String p, double s) [Person.super(n, c); position = p; salary = s; } Od public Employee(String n, int c, String p, double s) [name = n; cpr = c; position = p; salary = s; } QUESTION 2
QUESTION 1 Assume that class Person has following two private data fields: private String name; private int cpr; and following constructor: public Person(String n, int c) { name = n; cpr = c; } Now, we want to write a class called Employee that inherits the properties of class Person having following two data fields: private String position; private double salary; The constructor of class Employee can be written as follows: © ª public Employee(String n, int c, String p, double s) { this(n, c); position = p; salary = m; } © b. public Employee(String n, int c, String p, double s) { super(n, c); position = p; salary = s; } Ⓒc public Employee(String n, int c, String p, double s) [Person.super(n, c); position = p; salary = s; } Od public Employee(String n, int c, String p, double s) [name = n; cpr = c; position = p; salary = s; } QUESTION 2