#java #javatutorial #javacourse public class Main { public static void main(String[] args) { // Object = An entity that holds data (attributes) // and can perform actions (methods) // It is a reference data type Car car = new Car(); ( ); ( ); ( ); ( ); ( ); (); (); } } public class Car { String make = "Ford"; String model = "Mustang"; int year = 2025; double price = ; boolean isRunning = false; void start(){ isRunning = true; ("You start the engine"); } void stop(){ isRunning = false; ("You stop the engine"); } void drive(){ ("You drive the " + model); } void brake(){ ("You brake the " + model); } }











