The following is the constructor for the class Faculty. This class has one attribute which is String id (assuming that this attribute is declared) . What is wrong with this constructor? Please correct...



  1. The following is the
    constructor

    for the class
    Faculty.
    This class has one attribute which is
    String id
    (assuming that this attribute is declared).

    • What is wrong with this constructor? Please correct it.





public boolean Faculty( ) {


            id  = “unknown”;


            return true;


}





    • Please write the setter and getter methods for the id attribute.





Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here