Lec 6 Types of Programming Lang
Lec 6 Types of Programming Lang
Languages
Types of Programming Languages:
This programming language views the world as a group of objects that have internal data and
external accessing parts of that data. The aim this programming language is to think about the fault
by separating it into a collection of objects that offer services which can be used to solve a specific
problem. One of the main principle of object oriented programming language is encapsulation that
everything an object will need must be inside of the object. This language also emphasizes
reusability through inheritance and the capacity to spread current implementations without having
to changeProgramming
Scripting a great deal of Language:
code by using polymorphism.
These programming languages are often procedural and may comprise object-oriented language
elements, but they fall into their own category as they are normally not full-fledged programming
languages with support for development of large systems. For example, they may not have compile-
time type checking. Usually, these languages require tiny syntax to get started.
The Difference Between Different Programming Languages
C++ Language
The C++ language has an object oriented structure which is used in large
projects. Programmers can collaborate one program into different parts or even
one individual work on each part of the program. The structure of object oriented
also permit code to be reused many times.This language is an efficient language.
But, many programmers will disagree.
Syntax to add two numbers:
int x = 5;
int y = 6;
int sum = x + y;
cout << sum;
C Language
#include <stdio.h>
The C language is a basic programming language and it is a int main()
very popular language, particularly used in game programming, { int number1, number2, sum;
Because C language includes the additional packing of the C++, printf("Enter two integers: ");
Every programmer uses this language because it makes scanf("%d %d", &number1, &number2);
programs faster . However the value of this language gives the // calculating sum sum = number1 + number2;
reusability of C++ to get the slight increase in performance with printf("%d + %d = %d", number1, number2, sum);
C language. return 0; }
Pascal Language
This is all about the differences between programming languages and few major programming
languages are discussed. And, the remaining languages like Python, Smalltalk, COBOL, C# and
Prolog are similar to the above languages which are discussed. But selecting the suitable language
for developing a program or application is very important