Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1284066
  • 博文数量: 3010
  • 博客积分: 10011
  • 博客等级: 上将
  • 技术积分: 30431
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-27 11:53
文章分类

全部博文(3010)

文章存档

2008年(3010)

我的朋友

分类:

2008-06-02 22:20:09

Welcome to the exciting world of object-oriented programming! In this first chapter, I’ll start by discussing why object-oriented programming (OOP) was invented and why it offers advantages to the programmer. I’ll also provide a quick overview of the main features of object-oriented languages. You’ll learn about the two most fundamental aspects of OOP, objects and classes. Then I’ll focus on a particular kind of object—hot dog stand—and show how real hot dog stands on the street relate to hot dog stand objects in a program. You’ll see how to use C++ to describe a class of hot dog stand objects and how to make these objects carry out tasks.

This approach goes to the very heart of OOP. Most books begin by skittering around the edges of C++, talking about old-fashioned procedural details. This one attacks objects and classes head-on. If you think of OOP as a fierce fire-breathing dragon, then you’re going to walk right up to it, look it squarely in the eye, and tell it you want answers, now!

阅读(176) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~