C++ features by examples
Sample_product Struct Reference
Inheritance diagram for Sample_product:
Collaboration diagram for Sample_product:

Public Member Functions

int method () override
 
 Sample_product (int d=0)
 
- Public Member Functions inherited from Interface
virtual int method ()=0
 
virtual ~Interface ()=default
 

Public Attributes

int data
 

Detailed Description

Definition at line 215 of file patterns.cpp.

Constructor & Destructor Documentation

◆ Sample_product()

Sample_product::Sample_product ( int  d = 0)
inline

Definition at line 220 of file patterns.cpp.

220: data(d) {}

Member Function Documentation

◆ method()

int Sample_product::method ( )
inlineoverridevirtual

Implements Interface.

Definition at line 219 of file patterns.cpp.

219{ return data; }

Member Data Documentation

◆ data

int Sample_product::data

Definition at line 218 of file patterns.cpp.


The documentation for this struct was generated from the following file: