Logo

dev-resources.site

for different kinds of informations.

Day - 1 Task 1

Published at
12/17/2024
Categories
java
programming
payilagam
Author
harish_r_850ca66fd34b07e7
Categories
3 categories in total
java
open
programming
open
payilagam
open
Author
25 person written this
harish_r_850ca66fd34b07e7
open
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

Featured ones: