Problem I have a class something like the following: class ItemManager { List<Item> items; public ItemManager() { items = Database.retrieveItems(); […]
Category: Object Oriented
Student Classroom class
Problem I’d like to know if the following class design is good or bad: #include <iostream> #include <vector> #include <string> […]
Automated Java fighting and battling simulation
Problem This is my second post since I’ve started coding/joined this site so be ready for some bad code and […]
Java OOP Hangman
Problem Last time we posted here we were overwhelmed by the useful feedback. We’ve had another go at OOP/programming – […]
Finding the lowest and highest values in an array… with “Poor Man’s DI”
Problem I am practicing my object oriented knowledge, so I created a very simple program that determines which is the […]
OOP PHP form builder with validation
Problem Yes, another PHP form builder… I wrote this solely to demonstrate OOP principles. My questions are: Could this be […]
Is this following Separation of Concerns and PHP OOP standards?
Problem I’ve been working with PHP for a while now, but unfortunately haven’t delved into the OO side of it […]
Formatting a price in Swift using an extension vs. a class
Problem I have a price as a Double, which I should format it as a String. Should I use an […]
Feedback on my Conway’s Game of Life
Problem I’ve been programming for about 4 months now, just trying to learn by myself. I’ve tried my way with […]
Instance of one class to contain arbitrary number of instances of another class in Python
Problem I’m trying to see if there is a better way to design this. I have a class Animal that […]