文件名称:assign5
介绍说明--下载内容均来自于网络,请自行研究使用
Implement a class that represents a phone number in std::string type. The class should inherit the given Abstract-
Phone class. You are not allowed to change the prototypes in AbstractPhone.h. The AbstractPhone class is an
abstract class since getPhoneNumber() is declared as a pure virtual function. You should implement both the one
argument constructor and two argument constructor. LocalPhone class is a derived class from AbstracPhone class.
It doesn’t have additional member variables except the ones in AbstracPhone. Implement the one argument constructor
and getPhoneNumber() function
Phone class. You are not allowed to change the prototypes in AbstractPhone.h. The AbstractPhone class is an
abstract class since getPhoneNumber() is declared as a pure virtual function. You should implement both the one
argument constructor and two argument constructor. LocalPhone class is a derived class from AbstracPhone class.
It doesn’t have additional member variables except the ones in AbstracPhone. Implement the one argument constructor
and getPhoneNumber() function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
assign5
.......\a.out
.......\AbstractPhone.cpp
.......\AbstractPhone.h
.......\AbstractPhone.o
.......\assign5
.......\assign5.pdf
.......\CellPhone.cpp
.......\CellPhone.h
.......\CellPhone.o
.......\exacution
.......\.........\20101117assign5.cbp
.......\.........\20101117assign5.depend
.......\.........\20101117assign5.layout
.......\.........\bin
.......\.........\...\Debug
.......\.........\...\.....\20101117assign5.exe
.......\.........\main.cpp
.......\.........\main2.cpp
.......\.........\obj
.......\.........\...\Debug
.......\.........\...\.....\AbstractPhone.o
.......\.........\...\.....\CellPhone.o
.......\.........\...\.....\InterPhone.o
.......\.........\...\.....\LocalPhone.o
.......\.........\...\.....\main.o
.......\.........\...\.....\main2.o
.......\InterPhone.cpp
.......\InterPhone.h
.......\InterPhone.o
.......\LocalPhone.cpp
.......\LocalPhone.h
.......\LocalPhone.o
.......\main.cpp
.......\main.o
.......\Makefile