Question: b . consider the following constructors for class staff : public geaff ( ) { this name = ; this. i d =
b consider the following constructors for class staff :
public geaff
this name;
this. ;
public staffint i String n &
name ;
;
public stafeint is
name ;
;
public stafftring n
name ;
id ;
public stafe stafe s
name s name;
;
Rewriting the code to use this in the constructor :
note:
don't put any space when writing the code.
ex:
this incorrect
this correct
use these symbols for string and these symbols for character
Rewriting the code to use this in constructor :
public staff constructor
public staffint String & constructor
name ;
;
public stafftring f constructor
public staff staff sf constructor
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
