Computer Science, asked by skmainulhassanraj, 11 months ago

how to create object indica of a class car in Java!

Answers

Answered by Anonymous
0

In this tutorial I will explain the fundamentals of java classes and objects.

Java is an object-oriented programming language. This means, that everything in Java, except of the primitive types is an object. But what is an object at all? The concept of using classes and objects is to encapsulate state and behavior into a single programming unit. Java objects are similar to real-world objects. For example we can create a car object in Java, which will have properties like current speed and color; and behavior like: accelerate and park.

hope this answer helpful u

Answered by Anonymous
0

Hey mate!!

To create an object do as follows Class name object name=new class name();

Car indica = new car ();

Hope this helps you.

Mark as brainliest.

Similar questions