Categories

[C++ Tutorial 2] Multi-Paradigm Programming

7

Whenever the programmers feel the need to change the basic layout of setting up a program, a new paradigm is introduced. Computer languages can then be classified based on the respective paradigm.

A programming paradigm is nothing but a style of programming. In one paradigm we may concentrate on the logic, in another, we may stress on the structure or procedure of our program.

C++ is a programming language that uses three such paradigms & hence, is said to be a Multi-Paradigm programming language.

A) Generic – We generalize concepts as templates & reuse them in the source code.

B) Imperative – We work with a sequence of commands so as to change the state of the program.

(Procedural Programming is the most common way this can be done. Structural Programming is a subset of Procedural programming)

C) Object-Oriented – We use classes which are blueprints of objects that share common behavior & properties.

(The focus here is on the data & instructions rather than the process).

[Go to Tutorial 3]

SEE ALSO Inline Functions in C++

Share.

7 Comments

  1. Pingback: 10 Major Differences Between C And JAVA | Durofy

  2. Pingback: What are big differences between C and C++

  3. Pingback: Durofy » 10 Major Differences Between C And JAVA

  4. Pingback: Durofy » C++ Tutorial 1 – The Basics

  5. Pingback: 10 Major Differences Between C And C++ at Detrix

  6. Pingback: 10 Major Differences Between C And C++ » Durofy

  7. Pingback: The Basics Of Object Oriented Programming » Durofy

Leave A Reply