DEV Community

Saravanan
Saravanan

Posted on

Day - 4 Task

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

       public void develop()
    {

    }
       public int work(int e)
    {
        return e * 10;
    }


Enter fullscreen mode Exit fullscreen mode

output:

Image description

Top comments (0)