DEV Community

Harish R
Harish R

Posted on

Day - 1 Task 1

class Employee
{
public static void main(String[] args)
{
Employee hari=new Employee();
int output=hari.work(10);
hari.develop();
System.out.println("output="+output);
}
public int work(int no)
{
return no * 10;
}
public void develop()
{
//system.out.println("output");
}
}





Enter fullscreen mode Exit fullscreen mode

output:

Image description

Top comments (0)