/** ************重载,重写(覆盖),隐藏的识别*************重载:如何调用取决于参数覆盖:如何调用取决于object(有virtual 同名 同参)隐藏:如何调用取决于pointera、编译时多态性:通过重载函数实现 b、运行时多态性:通过虚函数实现。包含纯虚函数(vir...
分类:
其他好文 时间:
2014-06-29 00:26:59
阅读次数:
199
相同函数名具有多态性:① 译时的多态(由函数名来调用时体现):重载:同类,不同参② 运行时的多态(用指向不同类的指针来调用):覆盖: 不同类,同参,基类有virtual(由指针的类型来决定,体现了多态性)隐藏:①不同类,同参,基类无virtual②不同类,不同参(不论有无virtual)(由指针来决...
分类:
其他好文 时间:
2014-06-28 22:55:22
阅读次数:
276
1.关于java语言的基本概念java,面向对象,跨平台,适合分布式计算,解释型语言,具有多线程处理能力和较高的安全性.JVM (java virtual machine) java虚拟机, 能够运行java bytecode的虚拟机,是java平台的一部分。JVM屏蔽来与具体os相关的信息,使得j...
分类:
编程语言 时间:
2014-06-21 10:26:05
阅读次数:
319
三.虚析构#include using namespace std;class Base{public: virtual ~Base(){ cout<<"Base destructor\n"; }};class Derived:public Base{public: Derived(){...
分类:
其他好文 时间:
2014-06-21 08:53:46
阅读次数:
182
在java虚拟机规范一书中总结出java虚拟机的结构,在这画出粗略图,方便以后记起。后面写下各个项的一些解析。java 虚拟机栈: 每一条Java虚拟机线程都有自己私有的Java虚拟机栈(Java Virtual Machine Stack)①,这个栈与线程同时创建,用于存储栈帧(Frames, §...
分类:
编程语言 时间:
2014-06-19 07:25:22
阅读次数:
289
??
Where Can the UML Be Used
The UML is intended primarily for software-intensive systems. It has been used effectively for such domains as
Enterprise information systems
Banking and financial ser...
分类:
其他好文 时间:
2014-06-18 11:53:00
阅读次数:
190
As virtualization shifts the network edge from top of rack switches to software virtual switches running on the hypervisors; visibility in the virtual...
分类:
Web程序 时间:
2014-06-18 11:17:18
阅读次数:
626
一.虚基类——在继承方式(public / private)class B1: virtual public B0{};作用:防止多重继承中二义性,保证成员唯一标识是核心。【比较】 作用域分辨符:: vs 虚基类 相同:都是为了保证 唯一标识成员 不同:①“::” 在派生类中,同名成员有多...
分类:
编程语言 时间:
2014-06-18 08:52:01
阅读次数:
222
BACKGROUNDMany computing systems include a network interface card (NIC) to provide for communications with other systems and devices over a network. I...
分类:
Web程序 时间:
2014-06-18 00:18:41
阅读次数:
355
BACKGROUNDA virtual machine (VM) architecture logically partitions a physical machine, such that the underlying hardware of the machine is time-shared...
分类:
其他好文 时间:
2014-06-17 23:49:03
阅读次数:
350