# Module 14: Classes and Objects

MODULE OVERVIEW

This module introduces classes and objects in C++ programming, helping learners
understand how data and functions are organised within class-based structures.



Learners will explore class and object specifications, defining data members and
member functions, and working with arrays of objects.



The module also covers console input/output, C++ stream classes, formatted and
unformatted I/O operations, and manipulators, helping learners develop a better
understanding of how C++ programs interact with users and handle data.






WHAT WILL BE COVERED


14.1 CLASSES AND OBJECT SPECIFIER

Understand the concept of classes and objects in C++. Learn how classes define
the structure and behaviour of objects and how objects are created and used to
work with class-based program structures.


14.2 DEFINING DATA MEMBERS AND MEMBER FUNCTIONS

Learn how data members and member functions are defined within a class.
Understand how data is stored and how functions are used to perform operations
on class members.


14.3 ARRAY OF OBJECTS

Explore how arrays of objects are used to store and manage multiple objects of
the same class. Learn how objects can be organised and accessed using array
elements.


14.4 MANAGING CONSOLE I/O

Understand how console input and output operations are used in C++ programs.
Learn how to receive input from users and display program results through the
console.


14.5 C++ STREAM CLASSES

Explore the stream classes available in C++ and understand how they support
input and output operations. Learn the role of streams in handling data between
programs and input/output devices.


14.6 FORMATTED AND UNFORMATTED CONSOLE I/O

Learn the differences between formatted and unformatted console input/output
operations. Understand how data can be displayed and received using different
I/O techniques.


14.7 USAGE OF MANIPULATORS

Understand how manipulators are used to control and format output in C++. Learn
how manipulators help improve the presentation and readability of program
output.


SKILLS YOU WILL GAIN

 * Understanding classes and objects in C++.

 * Defining data members and member functions.

 * Working with arrays of objects.

 * Managing console input and output.

 * Understanding C++ stream classes.

 * Applying formatted and unformatted I/O operations.

 * Using manipulators to format program output.


LEARNING OUTCOMES

By the end of this module, learners will be able to:

 * Explain the concept of classes and objects in C++.

 * Define and work with class data members and member functions.

 * Create and manage arrays of objects.

 * Implement console input and output operations.

 * Understand the role of C++ stream classes.

 * Perform formatted and unformatted console I/O.

 * Use manipulators to control output formatting.


CERTIFICATION ALIGNMENT

This module develops object-oriented programming and console interaction skills
that are essential for building C++ applications. The concepts covered support
learners in progressing through the C++ curriculum and developing practical
programming capabilities.


CONTINUE TO THE NEXT MODULE

Continue to Module 15: Functions in C++
[https://teamacademy.help.center/article/1347-module-15-functions-in-c] to learn
about reference-based function operations, function overloading, default
arguments, inline functions, static class members, friend functions and virtual
functions.