DEV Community

yaswanth krishna
yaswanth krishna

Posted on

java task 3

class Washingmachine
{
public void cloth()
{
System.out.println("washing dirty clothes");
}
}

class Human
{
public static void main(String[] args)
{
Washingmachine wash = new Washingmachine();
wash.cloth();
}
}

Top comments (0)