DEV Community

AmalaReegan
AmalaReegan

Posted on

1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more