Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
61 views

Suppose I'm writing a class intended not just for my private use, but for others to use as well (e.g. it's exposed in a library I'm writing or modifying). Let's suppose also that it's not a singleton. ...
0 votes
1 answer
64 views

I am trying to create a simple S4 class that allows the storage of all necessary parameters to generate a semi-deteministic data synthetic set for another set of functions to act on. Ultimately, two ...
drJPK's user avatar
  • 1
1 vote
0 answers
107 views

Suppose I have the following class: template<typename T> struct A { T* ptr; }; and a bunch of functions which take this class as a parameter, e.g.: template <typename T> int one_two_three(...
2 votes
1 answer
4k views

I'm trying to develop an attendance management system in vb.net with only 1 primary user which will be the professor. I try putting it in a class diagram but I'm not entirely sure if it's right. ...
0 votes
2 answers
81 views

I am creating a Blazor WebAssembly app, and I have two classes (shown below). In WorkDay I want to calculate how much I will pay in taxes by using PayRate from the Job class. How can I get this to ...
0 votes
1 answer
897 views

class AccountClosureService( private val accountClosureRepository: AccountClosureRepository, private val userApplicationRepository: UserApplicationRepository, ){ // CRUD METHODS } interface ...
1 vote
0 answers
101 views

EDIT: Alright, the question does not seem to be suitable for the platform as there is no real technical background here. No problem (really, no sarcasm), I will look somewhere else for advice. Thanks ...
0 votes
2 answers
106 views

In the below sample code, how can we get rid of if-else ladder of concrete classes viz. NoProcesssorFoundError & UnknownError. I could extract an interface between Event1 and Event2 and pass their ...
2 votes
1 answer
455 views

I have a few questions regarding my design after having reviewed a number of information sources. I decided to link the User and UserSettings classes with a composition relation (since user settings ...
1 vote
1 answer
140 views

In class diagram representation, the fields and the class related methods are shown on the diagram. However, when converting the diagram to a class, I see that these methods are shown like an ...
2 votes
2 answers
113 views

There are 2 classes in the scenario under consideration, User and ConnectionRequest. The structures of the 2 classes are given below: User: fullName: String username: String email: String password: ...
-1 votes
1 answer
94 views

When it comes to class diagrams, can an association or aggregation exist between two objects that are in composition with one base object? Example: Class Car has a composition relation with class ...
1 vote
2 answers
138 views

This rings the "circular dependency" bell in my head. But I was wondering if there are known accepted use cases for this. Just to illustrate with some Python: class A: pass class B: ...
-1 votes
2 answers
396 views

Temperature is measured mainly in three units: in degrees Celsius, degrees Fahrenheit and in kelvins. It’s easy to convert any of them to the two others: Kelvin to Celsius: C = K - 273.15 Celsius ...
2 votes
1 answer
69 views

Let's suppose that we have a User class that is necessarily associated with a Role, which can be DogLover or CatLover. We have another abstract class called Animal, which has two implementations, Dog ...

15 30 50 per page
1
2 3 4 5
...
75

AltStyle によって変換されたページ (->オリジナル) /