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
Trying assign a value to base class atribute (from the derived class method) causes Segmentation Fault
I have this base class:
class Netpbm {
protected:
string magicNumber;
int width;
int height;
public:
Netpbm();
~Netpbm();
virtual void dump_data() = 0;
virtual void read_file(string fil...
Kleber Mota
Votes: 0
Answers: 0
access struct of base class with a template varaible
I want to create a derived class of base class that has a template and to keep the template option
but I cannot access a struct that is part of the base class
here is an example:
template <typename...

Or Hirshfeld
Votes: 0
Answers: 1
How select derived props in Aggregate function with 2 class
Plz help with System.Linq.Aggregate
I have the following class
public class MainClass
{
public ClassA someProp { get; set; }
public ClassA someProp2 { get; set; }
}
public class ClassA
{
pub...

Елена
Votes: 0
Answers: 1