mirror of
https://github.com/Light-City/CPlusPlusThings.git
synced 2026-04-08 13:12:20 +08:00
support bazel complie this project and format code.
This commit is contained in:
21
basic_content/abstract/abstract_base.h
Normal file
21
basic_content/abstract/abstract_base.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @file abstreact_base.cpp
|
||||
* @brief
|
||||
* C++中的纯虚函数(或抽象函数)是我们没有实现的虚函数!我们只需声明它!通过声明中赋值0来声明纯虚函数!
|
||||
* 纯虚函数:没有函数体的虚函数
|
||||
* @author 光城
|
||||
* @version v1
|
||||
* @date 2019-07-20
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief 抽象类
|
||||
*/
|
||||
class AbstractBase {
|
||||
// Data members of class
|
||||
public:
|
||||
// Pure Virtual Function
|
||||
virtual void show() = 0;
|
||||
|
||||
/* Other members */
|
||||
};
|
||||
Reference in New Issue
Block a user