Может кто-нибудь помочь мне с программой ниже?
- Определить класс
Employee
. - Создать 2 метода
getemployeeId(int arg)
и getemployeeId(obj arg)
, которые возвращают тип переменной . - Назначить идентификатор объекта = 12345
- Вызвать метод getemployeeId (id)
- Распечатать результат.
/// Following are the Classes
class Example{
static void main(String[] args){
Object obj= new Employee()
//complete the code
}
}
class Employee{
void getemployeeId(int args){
println("This is Integer")
}
//complete the code
}