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
0
Answer:
l dont know please check others
Answered by
0
Answer:
I don't know please mark me brainlist
Similar questions
Geography,
1 month ago
Social Sciences,
1 month ago
Science,
1 month ago
Psychology,
2 months ago
Chemistry,
2 months ago
Art,
10 months ago
Math,
10 months ago