What's the difference between overload and override
来源:互联网 发布:sqlserver中isnull 编辑:程序博客网 时间:2024/05/14 02:29
Overload means same function name defined in the class, but with different parameters. It's just about the polymophysm.
void func( int );
void func( double );
void fund( unsigned int );
Override means same function name with the same arguments, but defined in the parent and child class. It always used for inheritence.
class A{ public: void func( int );};class B : public A{ public: void func( int );};
- What's the difference between overload and override
- overload与override的区别 What is the difference between overload and override
- The difference between override and overload override和overload 的区别
- What's the difference between an event and a delegate?
- what's the difference between OnDraw and OnPaint
- What's the difference between stack and heap?
- What's the difference between LastWriteTime and ChangeTime in FILE_BASIC_INFO?
- What's the difference between Heap and Stack
- What's the difference between glibc and libc6?
- What's the difference between "but" and "yet"
- What's+the+difference+between+virtualization+and+cloud+computing?
- What's the difference between parallel and concurrent?
- What's the difference between program arguments and VM arguments?
- What's the difference between Template and Table in Smartforms
- What's the difference between “local” and “my” in Perl
- what's the difference between int (* f [])(); and int f[]();
- What's the difference between gcc and g++/gcc-c++?
- What's the difference between headsets and headphones?
- DirectX9.0教程之ID3DXSprite篇
- 简单说说IDirect3DDevice9::SetTextureStageState
- alpha混合原理
- 手机软件与手机网页的制作本钱
- 模板类声明和定义
- What's the difference between overload and override
- 全国省市数据库
- 2011系统分析师之上午试题应试策略
- ARM Cortex-M3,Cortex-M0,Cortex-A8的主要区别
- 马踏棋盘(非递归)
- 修改ORACLE字符集
- 马踏棋盘(递归算法)
- Bug
- val函数的使用