No label defined (Q5287512)

From MaRDI portal

!

This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use the normal view instead:

scientific article; zbMATH DE number 234013
Language Label Description Also known as
default for all languages
No label defined
    English
    No label defined
    scientific article; zbMATH DE number 234013

      Statements

      0 references
      8 July 1993
      0 references
      class construction
      0 references
      object-oriented programming
      0 references
      C
      0 references
      C++
      0 references
      This book surveys the fundamentals of object-oriented programming and shows how the concepts of this programming paradigm can be applied in C and C++. In particular, it focuses on developing classes and using them as building blocks for various complex applications. The book is explicitly targeted at a programmer audience, and thus includes over 7,000 lines of sample code. First, a comprehensive treatment of object-oriented concepts as implemented in standard C is given (providing a detailed coverage of the definition of classes and the instantiation of objects), and the weaknesses in implementing object- oriented concepts in C are addressed. Then the C++ extension of C is introduced, with special emphasis on those language features that support class definition, instantiation, derivation ((multiple) inheritance), construction, and virtual and nonvirtual method resolution. Several issues of memory management in C++ are discussed, the relationship between memory allocation using constructors and between memory deallocation using destructors, as well as the closely related topics of reference variables and type conversion. Also basic ideas underlying abstract base classes, generic data structures, and reuse through class hierarchies are considered. Finally, the implementation of C++ as a C preprocessor is considered; examples of preprocessor emitted C code are given to show how C++ implements overloaded methods, virtual methods, class hierarchies, and inherited members. Also the limitations of C++ are dealt with in this book. The book's final chapter gives a comprehensive, non-trivial application example coded in C++, a text processing program, which includes over 18 class definitions and 1,700 lines of code. It shows two major advantages of object-oriented programming, viz. reusability and strict modularization of code.
      0 references

      Identifiers

      0 references
      0 references
      0 references
      0 references