All Questions
Tagged with interface object-oriented
46
questions
2
votes
2
answers
85
views
Registering listeners according to SOLID pricipals
I'm practicing oop concepts these days. To figure it out I tried the below problem.
There is a sensor monitoring system. It is a simple system that prints a value, ...
0
votes
1
answer
447
views
5
votes
1
answer
184
views
Manage Excel Styles with VBA OOP Approach (Follow up)
This is a follow up to this question
Code incorporates Mathieu's comments and it works. As some parts of the review left some code to my knowledge, I ask for another review to see if I implemented ...
5
votes
1
answer
252
views
Manage Excel Styles with VBA OOP Approach
I want to manage the Excel Styles in a more flexible way with bulk actions and at the same time improve my newly acquired OOP concepts.
Objectives:
Load the current Styles list (name and type=...
2
votes
1
answer
127
views
Interface and inheritance; creating download types for a download manager
I'm creating a download manager in C# (in combination with Unity 2019.1.8, running the .NET 4.x equivalent (MONO) scripting back end). To accomplish this I decided to start using interfaces and class ...
4
votes
1
answer
153
views
Factory pattern for creating embossing machines
I'm working on a program that creates a file for a specific embosser machine (machine that creates plastic bank card for example). I have 3 embosser machines and all of them create different files. ...
0
votes
1
answer
51
views
proper structure of classes using interface classes [closed]
Given the following two interfaces what would the proper way to set up the two actual classes?
...
5
votes
1
answer
202
views
Service for generating faked objects
I'm using the Bogus library to mock up some data for testing.
This is my main method demonstrating how the faking service should be used:
...
1
vote
1
answer
2k
views
ChangeCalculator for calculating money denominations in change
I'm doing some exercises in OOP and I just created a program that calculates amounts of denominations in a change at the shop. So, let's say something costs 10, I give 25.30 (for some reason), so I ...
0
votes
3
answers
105
views
"Human" interfaces with two implementation classes
The Helloworld class executes all of the methods. Human is the interface, and Nate & <...
2
votes
1
answer
3k
views
Implementation of generic unordered list in java
This question is a follow-up question of this question. These features are added to the new class -
Generic class
User is capable of setting the size
...
5
votes
1
answer
2k
views
Processor for handling generic commands
I'm trying to implement business logic layer based on concepts of commands and command handlers.
A command is a thing that contains input parameters for executing some action, and it knows what kind ...
4
votes
1
answer
819
views
C++ implementation of the decorator pattern
This is a C++ implementation of the decorator pattern. I am also learning about interfaces and (pure) virtual functions.
...
1
vote
1
answer
1k
views
PHP OOP API Class
I want to do an API or contract in Laravel focus when one person wants a contract or credit, but honestly it's for a scholarship but the process it's similar when I got a credit from a bank. Honestly ...
1
vote
2
answers
2k
views
Creating a Student class for a project
To recover from yesterday's disaster, I re-read the SOLID principles and refactored my code. Hopefully I did a better job than yesterday. I wanted to keep my Student...