InstructorHsueh-Wen Tseng 曾学文,hsuen@voip.csie.ntu....754汇总567.pptVIP

  • 2
  • 0
  • 约6.94千字
  • 约 49页
  • 2018-08-12 发布于湖北
  • 举报

InstructorHsueh-Wen Tseng 曾学文,hsuen@voip.csie.ntu....754汇总567.ppt

InstructorHsueh-Wen Tseng 曾学文,hsuen@voip.csie.ntu....754汇总567.ppt

繼承(Inheritance) human: name, age, color eat(); sleep(); citizen: name, age, color, country, ID eat(); sleep(); payTax(); married() ; (繼承) * fhfgh 多型(Polymorphism) 同一個函數名稱可以有不同的詮釋 編譯時期多型 function overloading operator overloading 執行時期多型 * fhfgh 1-8 C++的關鍵字 1-40頁 * fhfgh 第二章 簡介類別 2-1 建構子與解構子 2-2 接受參數的建構子 2-3 簡介繼承? 2-4 物件指標 2-5 類別、結構與聯合彼此相關 2-6 行內函數(inline functions) 2-7 自動化行內 * fhfgh 2-1 建構函數與解構函數 建構子函數(constructor functions) 物件生成時所呼叫的成員函數 解構子函數(destructor functions) 物件消滅時所呼叫的成員函數 * fhfgh 物件的生成與消滅 1 int main() { 2 myclass ob1 ; 3 ob1.show() ; 4 fun() ; 5 return 0; 6 } 7 void fun() {

文档评论(0)

1亿VIP精品文档

相关文档