Hi guys, I wonder if you can help.
As I've started as a programmer, I've been told I have to practice OO a bit more. I've done the theory, but I think I will have to take another look at it. , Above all though, I have to do exercises.
What I'm looking for is for suggestions: things I have to practice are:
-Inheritance
-Interfaces
-Polymorphism
-And in general anything to do with OO.
Ideally I don't really need to do any complicated exercise, even simple scenarios would do as long as I can put into practice the theory, printing some user input strings might be enough as long as I can implement 00 principles, so things like, an emplyoee hierarchy or something along these lines.
Also I know Im a bit weak when it comes to linking different classes together, and things like composition.
So, can anybody suggest simple situation/s I could use to practice?
I have installed the Spring Tool Suite but if I'm not mistaken I can use it to create ordinary java projects.
Any idea?
Violet_82
89
Posting Whiz in Training
Recommended Answers
Jump to PostThere are lots of real-world collections of objects that relate to other types of objects in different ways. A very obvious example would be Organism, with subclasses Animal, Plant, etc.. The Animal class would contain Vertebrate and Invertebrate classes. Within the Vertebrate class you have Mammals, Reptiles, Fish, etc. then …
All 3 Replies
Tildesare
0
Newbie Poster
Violet_82
89
Posting Whiz in Training
AssertNull
1,094
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.