DEV Community

AmalaReegan
AmalaReegan

Posted on

Day 4 java class

Image description

input:

class Car
{
public static void main(String[] args)
{
Car mechanics=new Car();
mechanics.mech();
}
public void mech()
{
System.out.println("mechanics");
}
}

Image description

Top comments (0)