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
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.
+ 1
You must learn Object Oriented Programming from scratch:
Classes, Objects, Inheritance, Encapsulation, Polymorphism(Overloading, Overriding, Abstraction (interfaces, abstract classes)
etc....