Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78976713
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
Sat, Aug 24, 02:18
Size
395 B
Mime Type
text/x-c++
Expires
Mon, Aug 26, 02:18 (2 d)
Engine
blob
Format
Raw Data
Handle
20130495
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