git
ask
hub
Privacy
Terms
Sign in with GitHub
shalithasuranga/java-oop-exercise-1
↗
Language ·
Java
License ·
MIT
Simplify and Visualize This Repo
Scan the safety of this repo
Self Host this repo
Check out more work of Developer: shalithasuranga
Ask anything about this repo to start.
Help me set up a Java project so I can practice object-oriented programming by defining classes, creating objects, and making them interact with each other.
I'm a beginner learning Java OOP. Walk me through creating a simple class like Car with properties like color and speed, plus methods like accelerate and brake.
Create a practice exercise in Java that teaches me how to define a class, instantiate objects from it, and have two objects interact with each other.
I want to practice Java OOP fundamentals. Give me a small coding task where I define a class with fields and methods, then create and use objects from that class.
Full explanation on explaingit →
📎
Send
By chatting or signing in you agree to the
Terms
and chat-message logging (revocable in
History
).