TAILIEUCHUNG - Thinking in C plus plus (P2)

Tham khảo tài liệu 'thinking in c plus plus (p2)', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | implementation. From a procedural programming standpoint it s not that complicated. A type has a function associated with each possible request and when you make a particular request to an object that function is called. This process is usually summarized by saying that you send a message make a request to an object and the object figures out what to do with that message it executes code . Here the name of the type class is Light the name of this particular Light object is It and the requests that you can make of a Light object are to turn it on turn it off make it brighter or make it dimmer. You create a Light object by declaring a name It for that object. To send a message to the object you state the name of the object and connect it to the message request with a period dot . From the standpoint of the user of a pre-defined class that s pretty much all there is to programming with objects. The diagram shown above follows the format of the Unified Modeling Language UML . Each class is represented by a box with the type name in the top portion of the box any data members that you care to describe in the middle portion of the box and the member functions the functions that belong to this object which receive any messages you send to that object in the bottom portion of the box. Often only the name of the class and the public member functions are shown in UML design diagrams and so the middle portion is not shown. If you re interested only in the class name then the bottom portion doesn t need to be shown either. The hidden implementation It is helpful to break up the playing field into class creators those who create new data types and client programmers4 the class consumers who use the data types in their applications . The goal of the client programmer is to collect a toolbox full of classes to use 4 I m indebted to my friend Scott Meyers for this term. 30 Thinking in C for rapid application development. The goal of the class creator is to build

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.