Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop
Title: Box Download
 Description: Box can be viewed as a cube in a mutually orthogonal rectangle Rectangle long length and width width based on the increase with the length and width one-dimensional orthogonal generated high height. Define a rectangle with the Rectangle class inheritance and cube class Box. Two classes in addition to having common attributes length and width, but also has the same interface (public member function) Area (calculated area of ​ ​ a rectangle cube area), Perimeter (calculate rectangular perimeter or circumference cube), Diagmonal (calculated rectangle diagonally lines or cube diagonal length), GetLength (for length attribute), GetWidth (for width attribute), SetLength (set the length attribute) and SetWidth (set the width property). In addition, the cube class Box also need to increase the height property and interface functions Volume (calculated volume of a cube), GetHeight (for height attributes) and SetHeight (set the height property). (No need to consider the constructor)
 Downloaders recently: [More information of uploader 郑秋凯]
 To Search:
File list (Check if you may need any files):
 

Lab9_2.cpp
    

CodeBus www.codebus.net