python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Not calling the appropriate constructor
#include<iostream>
using namespace std;
class String
{
protected:
enum {SZ= 80};
char str[SZ];
public:
String (){str[0]='\0';}
String(char s[])
{
...
Waqar Ahmed
Votes: 0
Answers: 1
Easy way to alias base class method (other than constructor) in derived class in C++
I'd like to alias a method of a base class in a derived method in C++ -- i.e. change only the name, not the signature.
The method's name is clear enough in its original scope (in the base class), but ...
Jimbo1987
Votes: 0
Answers: 2
Python: multiple inheritance and properties
I've been working on a client/server TCP application of which here's a rough outline:
config_type = namedtuple('config', ['host', 'port'])
class Server:
def __init__(self, config: config_type):...
Ian Newson
Votes: 0
Answers: 1
How to troubleshoot `super()` calls finding incorrect type and obj?
I have a decorator in my library which takes a user's class and creates a new version of it, with a new metaclass, it is supposed to completely replace the original class. Everything works; except for...
Robin De Schepper
Votes: 0
Answers: 1