Object Oriented Programming Using C++ ppt

817 7.7K 1
Object Oriented Programming Using C++ ppt

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... xvi PREFACE Object- Oriented Programming Using C++, Fourth Edition is designed for many levels of programming students and a variety of programming teaching styles Readers who are new to programming will find the basics of programming logic and the C++ programming language covered thoroughly and clearly Comprehensive, engaging explanations, multiple programming examples, and step-by-step programming. .. games xvii PREFACE APPROACH Object- Oriented Programming Using C++ teaches object- oriented concepts using C++ as a tool to demonstrate these concepts This book teaches programming concepts using a task-driven rather than a command-driven approach Structures are introduced in Chapter 1 so that students start thinking about objects right from the start However, discussion of objects is reserved for the... with a solid C++ background Users who know some C++ syntax, but are new to object- oriented programming, will find objects explored thoroughly from the first chapters Objects are introduced early, so those who want to learn objects at the start of their programming experience can do so Users who want to postpone objects can simply omit the later sections of each chapter and cover the basic programming. .. » In this chapter, you will: Learn about the task of programming Examine programming universals Explore procedural programming Be introduced to object- oriented programming Get started in the C++ programming environment Work with variables and the const qualifier Create comments Examine the differences between ANSI/ISO C++ and Standard C++ Produce C++ output with cout Provide input with cin Begin to... with cin Begin to work with data structures and classes 1 AN OVERVIEW OF OBJECT- ORIENTED PROGRAMMING AND C++ Whether you are new to programming or have already had a class in logic or a programming language other than C++, this chapter introduces you to the fundamental concepts of programming, including procedural and object- oriented programming After learning or reviewing what it means to program, you... LIE: OBJECT- ORIENTED PROGRAMMING 1 An object is a specific instance of a class; a class defines the characteristics of its objects and the methods that can be applied to its objects 2 In object- oriented languages, you can create new classes that extend or are descendents of existing classes 3 Object- oriented programs use procedural methods to carry out the same operation in a manner customized to the object. .. other; you can write procedural programs in C++ and all other modern programming languages 10 C H A P T E R O N E OBJECT- ORIENTED PROGRAMMING Object- oriented programs use all the features of procedural programs you just read about: they contain variables that are operated on by instructions written in sequence, selection, and loop statements However, object- oriented programming requires a different way of... the more complex objects later on ORGANIZATION AND COVERAGE Object- Oriented Programming Using C++ contains 14 chapters and five appendices that present clear text explanations, directed hands-on instruction, and a wealth of exercises In these chapters, readers learn about programming logic in general, C++ syntax in particular, and gain an appreciation for and understanding of the object- oriented approach... Member Functions 618 618 621 623 624 USING OSTREAM MEMBER FUNCTIONS Using Format Flags with setf() and unsetf() Using the width() Function Using the precision() Function Other ostream Member Functions 625 625 626 627 627 USING MANIPULATORS Using the setprecision() Manipulator Using the setw() Manipulator Using the setiosflags() and resetiosflags() Manipulators Using the oct, hex, and showbase manipulators... a few examples Then you will compare procedural and object- oriented programs and learn the additional features object- orientation provides In the rest of the chapter, you will consider the basic principles behind object- oriented programming techniques, including objects, classes, inheritance, and polymorphism Then you will get started in the C++ programming environment by applying what you have learned . xvii PREFACE APPROACH Object- Oriented Programming Using C++ teaches object- oriented concepts using C++ as a tool to demonstrate these concepts. This book teaches programming. 777 xvi PREFACE Object- Oriented Programming Using C++, Fourth Edition is designed for many levels of programming stu- dents and a variety of programming teaching

Ngày đăng: 05/03/2014, 13:20

Từ khóa liên quan

Mục lục

  • Front Cover

  • Title Page

  • Copyright

  • BRIEF CONTENTS

  • CONTENTS

  • PREFACE

  • READ THIS BEFORE YOU BEGIN

  • CHAPTER 1 AN OVERVIEW OF OBJECT-ORIENTED PROGRAMMING AND C++

    • THE TASK OF PROGRAMMING

    • PROGRAMMING UNIVERSALS

    • PROCEDURAL PROGRAMMING

      • Early Procedural Programs

      • Modularity and Abstraction

      • Encapsulation

      • OBJECT-ORIENTED PROGRAMMING

        • Objects and Classes

        • Inheritance

        • Polymorphism

        • GETTING STARTED IN THE C++ PROGRAMMING ENVIRONMENT

          • Creating a main()Function

          • WORKING WITH VARIABLES AND THE const QUALIFIER

            • The int Data Type

            • The char Data Type

            • The bool Data Type

            • Floating-Point Data Types

Tài liệu cùng người dùng

Tài liệu liên quan