Programming Language: Object-Oriented Programming As A Programming Language

1273 Words6 Pages
1
Object oriented programming
1.1 Introduction
Programming language
A programming language is a formal constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs to control the behavior of a machine or to express algorithms (Learn to Program with Ruby, 2015).
Thus use of programming language is a way for us to communicate with the computer and make it do certain things. While the old way was the use of binary digits 0 and 1, the new way is easier for us to understand.
There are two types of Programming language. They are as follows:
i. Low level language ii. High Level language
Object-oriented programming (OOP) is a programming paradigm based on the
…show more content…
Polymorphism:
Polymorphism is the process of creating objects or forms with same identical names. Polymorphism is the principle of OOP where multiple methods are manifested all with the same name and with different ways. There are two types of polymorphism. They are Run time polymorphism and Compile time polymorphism
“+” operator can be used to for binary addition as well as joining two or more strings together or concatenation. iii. Abstraction:
Data abstraction refers to, providing only essential information to the outside world and hiding their background details, i.e., to represent the needed information in program without presenting the details. (Tutorialspoint.com, n.d.) iv. Encapsulation:
Encapsulation refers to the bundling of data with the methods that operate on that data. (Rogers, 2014)
Encapsulation is used to hide the values or state of a structured data object inside a class, preventing unauthorized parties' direct access to them.
1.3. Characteristics of object oriented programming language
i. Classes & Objects
A class is simply a representation of a type of object. It is the blueprint, or plan, or template, that describes the details of an object. A class is the blueprint from which the individual objects are created. Class is composed of three things: a name, attributes, and operations (Codeproject.com,

More about Programming Language: Object-Oriented Programming As A Programming Language

Open Document