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)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay