Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122293370
calling_mother.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 17, 02:20
Size
395 B
Mime Type
text/x-c++
Expires
Sat, Jul 19, 02:20 (2 d)
Engine
blob
Format
Raw Data
Handle
27462266
Attached To
R9360 PCSC_git
calling_mother.hh
View Options
#include <iostream>
class Animal {
public:
Animal(const std::string &name) { this->name = name; }
virtual void scream() { std::cout << name << ": AAAAA" << std::endl; }
protected:
std::string name;
};
class Dog : public Animal {
public:
Dog(std::string &name) : Animal(name) {}
void scream() override {
Animal::scream();
std::cout << name << ": OUAFF" << std::endl;
}
};
Event Timeline
Log In to Comment