文件名称:FISH-AND-ANIMAL-CPP
-
所属分类:
- 标签属性:
- 上传时间:2013-04-15
-
文件大小:2.34kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
C++编译器在编译的时候,发现Animal类的breathe()函数是虚函数,这个时候C++就会采用迟绑定(late binding)的技术,在运行时,依据对象的类型(在程序中,我们传递的Fish类对象的地址)来确认调用的哪一个函数,这种能力就做C++的多态性。-C++ compiler during compilation, found the Animal class breathe () function is a virtual function, the c++ will use late binding (newest) binding technology, at runtime, depending on the type of the object (in the program, we pass the address of Fish class object) to confirm which one function call, the ability to do the polymorphism of c++.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FISH AND ANIMAL C++/Animal.cpp
FISH AND ANIMAL C++/Animal.h
FISH AND ANIMAL C++/Fish.cpp
FISH AND ANIMAL C++/Fish.h
FISH AND ANIMAL C++/Main.cpp
FISH AND ANIMAL C++/Test.cpp
FISH AND ANIMAL C++/WinMain.cpp
FISH AND ANIMAL C++
FISH AND ANIMAL C++/Animal.h
FISH AND ANIMAL C++/Fish.cpp
FISH AND ANIMAL C++/Fish.h
FISH AND ANIMAL C++/Main.cpp
FISH AND ANIMAL C++/Test.cpp
FISH AND ANIMAL C++/WinMain.cpp
FISH AND ANIMAL C++
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.