I learn C++ OOP-paradigm and want to ask related question: Assumption We have a base class: class Base { public: virtual SomeType PowerMethod() { return So
I'm a python beginner just ran threw a book that includes this MiniProject at the very end.The exercise reads: Your task is to create a deck of cards class. Th
class makequestions(QMainWindow): def __init__(self): super(makequestions, self).__init__() uic.loadUi("Addquestions.ui", self) self
Need a real implementation of this code interface IExample{ public this ReturnMe(); } class Example : IExample { public this ReturnMe(){...} //returns an
With p5.js in a first time I cannot draw gradually the Koch snowflake: when a click to perform I see the result of the drawing when the recursion is gone. so I
I have a list of class objects and I want to know how can I print a particular class object inside the list given a value for one of its attributes. Here is my
Let's say I have a number of inherited classes class Bird: def __init__(self): pass def identify(self): print("I am a generic bird!")
I'm struggling on this problem, given that I'm probably making a basic mistake or I haven't got a clue what I'm doing. platform being a Zybook the problem rea
Giving an interface interface IAnInterface { } How to reference and point to a class type that implements that interface! Meaning! Giving a class: class AClas
At my course we are getting tasks that always start with filling a random matrix size nxm with random numbers. I want to create(a library?, a class?) some struc
I am trying to create a Python Class to calculate the Kelly Criterion formula in order to determine the precise bet size for an individual sport's investment. I
The class has two constructors, one that has no initialization value and does not increase the 'val', the other takes a reference to an object, and increases 'v
Today, I updated my Java version from 16 to 17, and I found that sealed classes is a new feature in it. I think it can be declared like this: public sealed clas
I need to use Dependency Injection in a static class. the method in the static class needs the value of an injected dependency. The following code sample demo
I have a Blazor Project, in the Program.cs(formaly aka Startup.cs) I added a service builder.Services.AddSingleton<Models.UserVisit>();
no matter what I use indexof() or contains or .equals() changing everything to uppercase or to lowercase It always return false and not found can someone please
I'm new here, I have a small problem in kivymd. Is there anyone here who would be able to help me? this is my main.py file from kivymd.app import MDApp from k
I'm developing Wordle in C++ using a .net graphic interface with visual studio. I have a file.h that contains a class "WordDatabase", and I need to use one of t
I'm coding in Python. I have a Base class which contains several methods. There are some child classes; they may have their own methods. I want the Base class c
I am trying to get auto completion of method parameter names for class instances but can't quite figure it out. Take this example class: class Abc: def meth