Write a statement in java to:
i. Create an object called Maruti that belongs to a class called Car.
Answers
Answered by
5
Answer:
take help of youtube you got your answer
Answered by
5
Answer:
Car Maruti = new Car();
Explanation:
We know that the syntax for naming an object in a class is:
(class_name) (object_name) = new (class_name);
just substitute the names :)
Similar questions