DEV Community

yaswanth krishna
yaswanth krishna

Posted on

java task 3

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)