Book Image

Microsoft Visual C++ Windows Applications by Example

By : Stefan Bjornander, Stefan Björnander
Book Image

Microsoft Visual C++ Windows Applications by Example

By: Stefan Bjornander, Stefan Björnander

Overview of this book

Table of Contents (15 chapters)
Microsoft Visual C++ Windows Applications by Example
Credits
About the Author
About the Reviewer
Preface
Index

Summary


  • The object-oriented model rests on the three cornerstones inheritance, encapsulation, and dynamic binding as well as the five relations instance, inheritance, aggregation, connection, and call.

  • An object can be created as an instance of a class. A class consists of two types of members: methods (member functions) and fields (member variables). A member can be private, protected, or public. The methods of a class can be divided into constructors, inspectors, modifications, and one destructor.

  • A class can inherit one or more, other baseclasses with its members. A method of the baseclass can be virtual, resulting in dynamic binding.

  • An array can hold a sequence of objects. The classes of those objects have to have a default constructor or no constructor at all in order for the objects to be thoroughly initialized.

  • With the help of pointers and classes, we can create a linked list, which is a very useful structure. With its help, we can construct a stack.

  • We can overload the usual operators...