Accessor and mutators are often declared as when they are used to access the property outside the object
Answers
Answered by
2
Making class called ID Card that contains a person's name, ID number, and the name of a file containing the person's photogrpah. Creating accessor and mutator methods for each of these fields.
Including the following two overloaded constructors to the class: public IDCard() public IDCard(String n, int ID, String filename)
Testing your program by different objects using these two constructors and printing out their values on the console using the accessor and mutator methods.
Answered by
1
Answer:Public
Explanation:
Similar questions
Social Sciences,
7 months ago
Math,
7 months ago
Computer Science,
7 months ago
Business Studies,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago
Sociology,
1 year ago