Danh mục

A Closer Look at Functions

Số trang: 33      Loại file: pdf      Dung lượng: 1.15 MB      Lượt xem: 24      Lượt tải: 0    
Thư viện của tui

Phí tải xuống: 19,000 VND Tải xuống file đầy đủ (33 trang) 0
Xem trước 4 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

This module continues our examination of the function. It discusses three of C++’s most important function-related topics: references, function overloading, and default arguments. These features vastly expand the capabilities of a function. A reference is an implicit pointer. Function overloading is the quality that allows one function to be implemented two or more different ways, each performing a separate task. Function overloading is one way that C++ supports polymorphism. Using a default argument, it is possible to specify a value for a parameter that will be automatically used when no corresponding argument is specified. We will begin with an explanation...
Nội dung trích xuất từ tài liệu:
A Closer Look at Functions

Tài liệu được xem nhiều: