I have recently started some OOP in C++, and I was trying to make a small program in Dev-C++ to store arrays of information on employees through a friends funct
I want to design specific class hierarchy consisting of three classes: Certificate, Organization, User. Both Certificate and Organization seem to me to be kinda
I'm trying to encapsulate the Allegro5 C++ library and I want to have a namespace of rendering functions. The problem is that in order to use the rendering func
I want to declare a variable name via template literals How it is possible ? let z = 3; let test`${z}` = "hello"; //or = new obj() for example console.log
I am trying to take Dan Shiffman's prime spiral program and make it object oriented. I am putting all variables into the constructor and making the functions in
I'm pulling table data from api in my application that I wrote with Flutter. According to the API used in the table data, different types of data are coming. I
I have a dataclass called Config that is created through the properties and values of a dictionary. Since this dictionary can have nested dictionaries, i would
I am new to OOP in Python. As the title suggests, I am unsure as to how the __init__ method can assign attributes to an object of a given clas
Im trying to implement Mixin patter while Im using Pydantics BaseClass to facilitate the instantiation and validation of data from my class. The problem is that
I am using radio button selection to change a label widget in my window, I've just written this code to save myself having to write essentially the same thing f
Lately I've been learning something about blockchain and I decided to try to make one in c++, without libraries that were made specifically for that, just with
So I have read a lot of things about people saying const & is always good as it eliminates copying, and passing by value is a bad idea. Th
My Factory has dependency on Repository. It calls many methods from Repository. Lets say something like this: class CarFactory { private Repository reposito
I am compiling a class, the complete program to which is given below: #include<iostream> using namespace std; class Test{ public: Test()
I understand interface segregation and single responsibility principles guide against a class implementing methods or property it doesn't need
Basically, I am trying to define a subclass of string which conforms with the RFC UUID scheme. An object of this class can only exist if it conforms to the 8-4-
I am trying to implement an interface and this interface is taken by two concrete classes say class First and class Second, I have another class that takes thes
Suppose we have two objects: var a = { foo: { bar: 1 } } var b = { foo: { bar: 2 } } If I set the object b to a (a = b), I expect that a takes the value of b
I have an ArrayList of an object type, let's call it 'Parent'. I need to use a method (.method1()) that is only available in its child, another object called 'C
My base class detect() and collect() methods are the only ones being called. I'm trying to get the derived class methods of these to be printed instead. I belie