dev-resources.site
for different kinds of informations.
Employee task
Published at
12/31/2024
Categories
java
programming
tutorial
softwaredevelopment
Author
hema latha
Main Article
public class Employee {
- Create a class 'Employee'
- Have main method in it.
- Inside main method, create an object.
- Using this object, call method called 'develop'.
- using this object, call method called 'work(10)'
- Define appropriate methods develop() and work(int no)
- From work method, return no * 10
- Store the returned value as 'output' in main method.
- Print the 'output'.
public class Employee {
public static void main(String[] args) {
// TODO Auto-generated method stub
Employee vasu = new Employee();
vasu.develop();
int num = vasu.work(10);
System.out.println(num);
}
public void develop()
{
}
public int work(int no)
{
return no*10;
}
}
Articles
12 articles in total
Google project
read article
what is HTML ?
read article
HTML FIRST PROJECT TIME TABLE
read article
Assignment
read article
Assignment smart phone
read article
Assignment
read article
Assignments 4
read article
My Assignments
read article
Play Ground task
read article
Supermarket
read article
Employee task
currently reading
Cricket task
read article
Featured ones: