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
I get an error when I try to serialize or update a json file. I just want to update the value of "balance" inside a json file and I got the idea here... I can't
I have a python function: class MyClass: my_class_variable: str = Optional[None] @classmethod def initialize(cls): cls.my_class_variable = cls.s
Decrementing Carousel is a container, accepting int elements. DecrementingCarousel has a maximum capacity, specified via the constructor. When created, Decremen
Task Description I have this problem statement: Create a class Employee with the following private member variables. int employeeId String employeeName double
Let's consider that we use OOP. Is a Subdomain a class? And Bounded Context is a set of classes that are used together for the only purpose(ideally)? Can on sub
I have been working on a simple JS calculator using an OOP approach. I am struggling to create a fix that prevents the input of extra decimals. For example, a u
I have been working on a simple JS calculator using an OOP approach. I am struggling to create a fix that prevents the input of extra decimals. For example, a u
I have this abstract class class Kuku(ABC): def __init__(self): self.a = 4 @property @abstractmethod def kaka(self): pass
I'm trying to use a Gem that provides me with a DSL i need to apply on some of my classes. But using it directly makes my class definitions not as clean as i wa
I had an error in a Typescript class method declaration, but I don't understand how the error message relates back to the bug. The message seems to be saying
I keep getting the following error and I'm not to sure why: Catchable fatal error: Argument 3 passed to System\Loader::action() must be of the type array, nul
I'm trying to develop a monolithic Django application with Uncle Bob's clean architecture. The problem is I don't want to miss the powerful abilities of Django
I have an executable that has many options and I wish to create classes. e.g. the exec has options that can copy rows of a file, rename parts of a file, compres
I have Base and Derive class at the below which related to polymorphism (Latebinding) : class Base { .... }; class Derive:public Base { .... }; int main() {
I'm new at programming and I'm learning Python. The code should be very simple. The goal should be implement a calculator that does additions between numbers. I
I've been trying to figure out how to do this most of the after noon, and I'm either not getting something, or I'm approaching things wrong. I'm currently worki
I have a parent and child class, where a parent's method returns an instance of the child. Both classes are in separate files classA.py and classB.py. In order
right now i am learning c++ and oop in c++.I usually practice on Codeforces,but i didn't get any use of object oriented programming for solving any problems.So
http://tutorials.jenkov.com/ood/understanding-dependencies.html#whatis says that (emphasis mine): Whenever a class A uses another class or interface B, then