Label Following Methods Accessor Mutator Constructor Additional Operation Public Void Setn Q43806425
Label the following methods as accessor, mutator, constructor,or additional operation:
- public void setName(String name) { this.name = name; }
- public int getID() { return id; }
- public Student(String name, int id) {this.name = name; this.id= id; }
- public void print() { System.out.println(“Name: ” + name +”nId: ” + id); }
Expert Answer
Answer to Label the following methods as accessor, mutator, constructor, or additional operation: public void setName(String name)…
OR