Task 2:
- Create a class called WashingMachine
- Have below method in it.
public void wash()
{
System.out.println("Washing Clothes");
} - Save and Compile this class.
- Create another class called Human with main method.
- Inside main method, create an instance for WashingMachine class.
- Using created instance, call wash() method.
Input:
Output:

SOCIAL SHARE CARD GENERATOR