OpenStax CNX

You are here: Home » Content » Object Manipulation - Inheritance

About: Object Manipulation - Inheritance

Module by: Dr Duong Tuan Anh. E-mail the author

View the content: Object Manipulation - Inheritance


Name: Object Manipulation - Inheritance
ID: m27280
Language: English (en)
Summary: In the previous chapter, the declaration, initialization, and display of objects were presented. In this chapter, we continue our construction of classes by discussing how to write advanced constructors and destructors. Besides, this chapter also discusses one of C++ most powerful features, inheritance. Inheritance permits the reuse and extension of existing code in a way that ensures the new code does not adversely affect what has already been written.
License: Creative Commons Attribution License CC-BY 3.0

Authors: Dr Duong Tuan Anh (
Copyright Holders: Dr Duong Tuan Anh (
Maintainers: vocw (, Dr Duong Tuan Anh (

Latest version: 1.1 (history)
First publication date: Jul 1, 2009 4:21 am -0500
Last revision to module: Jul 7, 2009 1:07 am -0500


PDF: m27280_1.1.pdf PDF file, for viewing content offline and printing. Learn more.
EPUB: m27280_1.1.epub Electronic publication file, for viewing in handheld devices. Learn more.
XML: m27280_1.1.cnxml XML that defines the structure and contents of the module, minus any included media files. Can be reimported in the editing interface. Learn more.
Source Export ZIP: ZIP containing the module XML plus any included media files. Can be reimported in the editing interface. Learn more.
Offline ZIP: An offline HTML copy of the content. Also includes XML, included media files, and other support files. Learn more.

Version History

Version: 1.1 Jul 7, 2009 1:07 am -0500 by Vietnam OpenCourseWare
Move from VOCW to CNX

How to Reuse and Attribute This Content

If you derive a copy of this content using a OpenStax_CNX account and publish your version, proper attribution of the original work will be automatically done for you.

If you reuse this work elsewhere, in order to comply with the attribution requirements of the license (CC-BY 3.0), you must include

  • the authors' names: Dr Duong Tuan Anh
  • the title of the work: Object Manipulation - Inheritance
  • the OpenStax_CNX URL where the work can be found:

See the citation section below for examples you can copy.

How to Cite and Attribute This Content

The following citation styles comply with the attribution requirements for the license (CC-BY 3.0) of this work:

American Chemical Society (ACS) Style Guide:

Tuan Anh, D. Object Manipulation - Inheritance, OpenStax_CNX Web site., Jul 7, 2009.

American Medical Assocation (AMA) Manual of Style:

Tuan Anh D. Object Manipulation - Inheritance [OpenStax_CNX Web site]. July 7, 2009. Available at:

American Psychological Assocation (APA) Publication Manual:

Tuan Anh, D. (2009, July 7). Object Manipulation - Inheritance. Retrieved from the OpenStax_CNX Web site:

Chicago Manual of Style (Bibliography):

Tuan Anh, Dr Duong. "Object Manipulation - Inheritance." OpenStax_CNX. July 7, 2009.

Chicago Manual of Style (Note):

Dr Duong Tuan Anh, "Object Manipulation - Inheritance," OpenStax_CNX, July 7, 2009,

Chicago Manual of Style (Reference, in Author-Date style):

Tuan Anh, D. 2009. Object Manipulation - Inheritance. OpenStax_CNX, July 7, 2009.

Modern Languages Association (MLA) Style Manual:

Tuan Anh, Dr Duong. Object Manipulation - Inheritance. OpenStax_CNX. 7 July 2009 <>.