0

How do I implement this code in Eclipse IDE?

Since I cannot post any pictures here, I have typed out the code from an image I found on the Internet into the file attached to this post . What are these "name:...door:.." inside the new Car() called?I want to write this on Java Eclipse Ide, but I am getting error.It's not working on sololearn as well. Can anyone guide me on how to write this code correctly? https://code.sololearn.com/c0cM2Fot3ywn/?ref=app

7th Dec 2020, 5:21 PM
Shafia Rahman Chowdhury
Shafia Rahman Chowdhury - avatar
2 Respostas
+ 2
Shafia Rahman Chowdhury I think you need to learn first about OOPs concepts. You need to create a class of Car and Engine. Name, door, color are the properties of Car class.
7th Dec 2020, 5:55 PM
A͢J
A͢J - avatar
+ 1
You must learn Object Oriented Programming from scratch: Classes, Objects, Inheritance, Encapsulation, Polymorphism(Overloading, Overriding, Abstraction (interfaces, abstract classes) etc....
7th Dec 2020, 5:59 PM
Shahghasi Adil
Shahghasi Adil - avatar