Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
95 views

Random generation of points for the graphs of 3 stock share parameters

I currently studying OOP and related design patterns, and tried to implement random data generation for some stock charts using OOP as an exercise. This code randomly generates data points for 3 ...
Jin22's user avatar
  • 33
0 votes
1 answer
450 views

Composing functionality of sealed class with interfaces

...
JPtheK9's user avatar
  • 103
4 votes
1 answer
140 views

First attempt at making a user class

I've just begun creating my first user class. First, I need some clarifications. Am I using try and catch correctly? To ...
r3wt's user avatar
  • 472
6 votes
7 answers
8k views

One instance per method call or multiple method call per instance

I have the following class designs, and I'm looking for the best practices, aligned to the OOP design principles/patterns. The ParameterParser will be used inside ...
natenho's user avatar
  • 215
4 votes
1 answer
572 views

How to convert my classes to Dependency injection?

I am still learning to develop my skills in OOP. It uses a combination of the factory and its real singletons? As I did more research, I have realized this design pattern is bad because of global ...
I'll-Be-Back's user avatar