Computer Science, asked by girishmaponipireddy, 6 hours ago

Write a Java program to implement a Constructor
II
Write a Java program with a class name Staff, contains the data members id (int), name (String) which are initialized with a parameterized constructor
show
The member function show() is used to display the given staff data.
Write the main() method with in the class which will receive two arguments as id and name.
Create an object to the class Staff with arguments id and name within the main, and finally call the method show to print the output
If the input is given as command line arguments to the main() as "18", "Gayatri" then the program should print the output as
Id : 18
Name : Gayatri​

Answers

Answered by thulasiraji92
0

Answer:

l dont know please check others

Answered by prachiupadhyaya
0

Answer:

I don't know please mark me brainlist

Similar questions