DEV Community

yaswanth krishna
yaswanth krishna

Posted on

java 3 task

class Waterbottle
{
public void drink(){

        System.out.println("Drinking quarter in waterbottle");
Enter fullscreen mode Exit fullscreen mode

}
}

class Boys
{
public static void main(String[] args)
{
Waterbottle wb = new Waterbottle();
wb.drink();
}
}

Top comments (0)