1.2 Evolution of C++
1.2 Evolution of C++
1.2 Evolution of C++
2 Evolution of C++:
The ANSI stands for American National Standards Institute. This Institute
was founded in 1918. The main goal for establishing this Institute was to suggest,
reform, recommend, and publish standards for data processing in the USA. This
Committee sets up the standard in the computer industry.
The recognized council working under the procedure of the American National
Standard Institute (ANSI) has made an international standard for C++. The C++
standard is also referred to as ISO (International Standards Organization) Standard.
The process of standardization is gradual and the first draft of the planned ANSI
standard was made on 25 January 1994. The ANSI standard is an attempt to ensure
that the C++ is portable.
Let us consider an example of a teaching institute which has two different working
sections – teaching and non-teaching. Further sub-grouping of teaching and non-
teaching can be made for the coordination of management. The various
departments of any organization can be thought of as objects working for certain
goals and objectives.
Besides teaching staff there must be laboratory staff for assistance in conducting
practical sessions, and a site development section for beautification of the campus.
The accounts department is also required for handling monetary transactions and
salaries of the employees. The Sports section is entrusted the responsibility of
sports activities. The Registrar for Administration and staff for dealing with
administrative matters of the institute are also required. Each department has an in-
charge who carries clear-cut given responsibilities. Every department has its own
work as stated above. When an institute’s work is distributed into departments as
shown in Evolution of C++ image, it is comfortable to accomplish goals and
objectives. The activities are carried on smoothly. The burden of one particular
department has to be shared among different departments with personnel. The staff
in the department is controlled properly and act according to the instructions laid
down by the management. The faculty performs activities related to teaching. If the
higher authority needs to know the details regarding the theory, practical, seminar
and project loads of individuals of the department, then a person from the
department furnishes the same to the higher authority. This way some responsible
person from the department accesses the data and provides the higher authority
with the requisite information. It is also good to think that no unconnected person
from another department reads the data or attempts to make any alteration that
might corrupt the data.
Each function can call another function, as shown in Figure. Each function has its
own task. If the program is too large the function also creates problems. In many
programs, important data variables are declared as global. In case of programs
containing several functions, every function can access the global data as per the
simulation in Figure. In huge programs it is difficult to know what data is used by
which function. Due to this the program may contain several logical errors.
The following are the drawbacks observed in monolithic, procedure, and structured
programming languages:
1. Huge programs are divided into smaller programs known as functions. These
functions can call one another. Hence security is not provided.
Programming Paradigms:-
1. Monolithic Programming:-
2. Procedural/Structural Programming:-
.
Preface to Object Oriented Programming
4. New data items and functions can be comfortably added whenever essential.
Objects
Objects are primary run-time entities in object oriented programming.
Objects are primary run-time entities in object-oriented programming. They may stand for a
thing that makes sense in a specific application. Some examples are a spot, a person, any data
item related to the program including user-defined data types. Programming issues are analyzed
in terms of object and the type of transmission between them. Program objects must be selected
like the items equivalent to actual world objects. Objects occupy space in memory. Every object
has its own properties or features that illustrate what the object can do. An object is a specimen
of a class. It can be singly recognized by its name. It declares the state that is shown by the data
values of its characteristic at a specific time. The state of the object varies according to the
procedure used with it. It is called as the action of the object. The action of the object depends
upon the member function defined within its class.