Professional Documents
Culture Documents
Objectives:
1. Defining multiple functions with the same name within the same scope, albeit with varying
parameters or parameter types is allowed.
2. Constructor overloading, akin to function overloading, allows for the instantiation of various
constructors within a class, each accepting a distinct parameter set.
3. Organizing code and avoiding naming clashes are facilitated by namespaces. A namespace
class denotes a class confined within a namespace.
4. Resembling a namespace class, a namespace function denotes a function confined within a
namespace.
5. To test the functionality of overloaded constructors and functions by invoking them with
different parameter combinations
Introduction to C++
C++ is a general purpose, case-sensitive, free-form programming language that supports object-
oriented, procedural and generic programming. Also C++ is a middle-level language, as it
encapsulates both high and low level language features.