Introduction of C ++ Language

Introduction of c++               

C++ laguage basics


C++ is a semi-object-oriented programming language. It was developed by Bjarne Stroustrup at AT & T Bell Laboratories in Murray Hill, New Jersey, USA, in early 1983.

C++ is a superset of C. Most of what we already know about c applies to c++ also. Therefore, almost all C programs are also C++ programs. However, there are a few minor differences that will prevent a C program to run under a C++ compiler.

The most important facilities that C++ adds to C are classes, inheritance, function overloading, and operator overloading. These features enable the creation of abstract data types, inherit properties from existing data types, and support Polymorphism, thereby making c++ a truly semi-object-oriented language. 

The object-oriented features in C++ allow programmers to build large programs with clarity, extensibility, and ease of maintenance, incorporating the spirit and efficiency of C. the addition of new features has transformed C from a language that currently facilitates top-down, structured design, to one that provides bottom-up, object-oriented design. The C language follows a top-down or procedural approach whereas C++ follows a bottom-up approach in program design for security purposes.

What is the bottom-up approach?

Object Oriented Programming treats data as a critical element in the program development and does not allow it to flow freely around the system. It ties data more closely to the functions that operate on it and protects it from accidental modification from outside functions. 

Object Oriented Programming allows the decomposition of a problem into a number of entities called objects and then builds data and functions around these objects. The data of an object can be accessed only by the functions associated with that object. However, the functions of one object can access the functions of other objects.

We can define Object-oriented programming as an approach that provides a way of modernizing programs by creating partitioned memory areas for both data and functions that can be used as data templates for creating copies of such modules on demand thus an object is considered to be a partitioned area of computer memory that stores data and set of operations that can access that data. Since the memory partitions are independent, the objects can be used in a variety of different programs without modifications.

C++ or Turbo C++-- It provides a powerful environment called Integrated Development Environment( IDE) for creating and executing a program. The IDE is completely menu-driven and allows the user to create, edit, compile and run programs using what is known as dialogue boxes. these operations are controlled by single keystrokes and easy to -use menus. 

 We first use the editor to create the source code file, then compile, link, and finally run it. Turbo C++ provides error messages, in case errors are detected. we have to correct the errors and compile the program again.
 These days, various types of compiler present that compile a newly written program converts source code into machine code easily like code:: block, turboc++, VC -code, etc
 

Comments

Popular posts from this blog

Cascading Style Sheet

Computer introduction