Lecture C++ for everyone (2nd edition): Chapter 9 - Cay S. Horstmann

Chapter 9 - Classes. this chapter introduces you to object-oriented programming, an important technique for writing complex programs. In an object-oriented program, you don’t simply manipulate numbers and strings, but you work with objects that are meaningful for your application. | C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Chapter Nine: Classes Slides by Evan Gallagher C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved To understand the concept of encapsulation To master the separation of interface and implementation To be able to implement your own classes To understand how constructors and member functions act on objects To discover appropriate classes for solving programming problems To distribute a program over multiple source files Chapter Goals C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved I thought you considered me more than just a collection of parts. I’m more than just functional. Object-Oriented Programming Am I just an object to you? C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved – now will you love me for what I am? Object-Oriented Programming I have an onboard . | C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Chapter Nine: Classes Slides by Evan Gallagher C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved To understand the concept of encapsulation To master the separation of interface and implementation To be able to implement your own classes To understand how constructors and member functions act on objects To discover appropriate classes for solving programming problems To distribute a program over multiple source files Chapter Goals C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved I thought you considered me more than just a collection of parts. I’m more than just functional. Object-Oriented Programming Am I just an object to you? C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved – now will you love me for what I am? Object-Oriented Programming I have an onboard computer C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Did you know that you already are an Object Oriented Programmer? (No way!) Object-Oriented Programming C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Does string sound familiar? (Yes ) Object-Oriented Programming C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Does string sound familiar? How about cin and cout? (Yes, but.) Object-Oriented Programming C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved An Object Oriented Programmer uses objects. (Wow, I didn’t realize ) Object-Oriented Programming C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved But a REAL Object Oriented Programmer designs and creates objects and then uses them. (Back to square 1 for me) (At least it’s not square 0 – that would be the very start.)

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
20    78    2    21-06-2024
97    100    2    21-06-2024
144    321    53    21-06-2024
Đã 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.