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)
Change base class fields in derived class with base class method
I am not sure where I am wrong here, but there seems to be some miss conception from my side.
I have a base class and a derived class and some methods like in this example.
class Base {
public:
...

PySeeker
Votes: 0
Answers: 2
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
Select property name from object in typescript via interface
Let's say I have a simplyfied code like this:
interface MyBase {
name: string;
}
interface MyInterface<T extends MyBase> {
base: MyBase;
age: number;
property: "name"...
Christoph
Votes: 0
Answers: 1
reaseat shared_ptr<Derived> from function accepting shared_ptr<Derived>
I'm trying to reseat a shared_ptr of a derived class from a function that accept a shared_ptr of a base class.
This answer is relevant, but it does not cover the fact that I need to reseat the pointer...

mcamurri
Votes: 0
Answers: 1