python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Template class implementation has compilation issues
I am creating an object using static member function of a class. and then calling a function inside.
int main(){
int a = 49;
auto foo = Foo::createFoo(a);
foo->study();
}
Implementation
for...

RC0993
Votes: 0
Answers: 1
How to instantiate class (implementation) base on input at runtime in Python
My program needs to select a class based on user input.
The classes have the same set of methods (inherited from the same ABC) with different implementations. And there are probably more than 30 clas...
SuperDumbTM
Votes: 0
Answers: 2
Polymorphic pointer change at run time
I am really confused about polymorphic pointers. I have 2 classes derived from an interface as shown below code.
#include <iostream>
using namespace std;
class Base {
public:
virtual ~Ba...
Hakkı
Votes: 0
Answers: 1
Generics: cast derived class back to it's parent super class
I have three base classes:
public class ItemBase
{
public string Name { get; set; }
}
public class ProductBase<T> : ItemBase
where T : ItemBase
{
public List<T> Modifiers { ge...
binariti
Votes: 0
Answers: 0