Designing with Objects

This chapter begins with a very brief description of procedural programming (C‐style), followed by a detailed discussion of object‐oriented programming (OOP). It then discusses the different kinds of relationships between objects, including pitfalls programmers often succumb to when building an obje...

Celý popis

Uloženo v:
Podrobná bibliografie
Vydáno v:Professional C++ s. 1 - 2
Hlavní autor: Gregoire, Marc
Médium: Kapitola
Jazyk:angličtina
Vydáno: Hoboken, New Jersey John Wiley & Sons 2018
John Wiley & Sons, Inc
Vydání:4th Edition
Témata:
ISBN:1119421306, 9781119421306
On-line přístup:Získat plný text
Tagy: Přidat tag
Žádné tagy, Buďte první, kdo vytvoří štítek k tomuto záznamu!
Popis
Shrnutí:This chapter begins with a very brief description of procedural programming (C‐style), followed by a detailed discussion of object‐oriented programming (OOP). It then discusses the different kinds of relationships between objects, including pitfalls programmers often succumb to when building an object‐oriented program. When thinking about procedural programming or object‐oriented programming, the most important point to remember is that they just represent different ways of reasoning about what is going on in the program. Too often, programmers get bogged down in the syntax and jargon of OOP before they adequately understand what an object is. The chapter lights on C++ code, concepts and ideas. It also describes how the principle of abstraction relates to objects. There are two major approaches to developing software with objects. To some people, objects simply represent a nice encapsulation of data and functionality. Other programmers adopt the OOP paradigm fully and turn everything into an object.
ISBN:1119421306
9781119421306
DOI:10.1002/9781119421276.ch5