Programming Languages:Object Oriented
Programming languages are languages that use algorithms to implement instruction in a computer.Algorithms are a set of simple instructions used to solve a simple problem using simple languages.
Types of programming languages that are commonly used
- Javascript
- Java
- Python
- C++
- Scala
- Ruby
- Typescript
In today’s World Python is one of the most commonly used languages and is easy for beginners to learn since its readability and easy to code and debug.Also the listed languages are used to develop Artificial Intelligence since they are elegant, lightweight and simple to use and learn.Artificial Intelligence enables digital transformation. The listed languages can also be described as object oriented programming languages.Object Oriented programming (OOP) is a programming paradigm that relies on the concept of classes and objects. It is used to structure a software program into simple, reusable code .OOP Classes are bundled collection of member functions and member data type.Object is an instance of a class.
Principles/Pillars of OOP: Encapsulation, Abstraction, Inheritance, and Polymorphism.
There are differences between these languages and they differ from syntaxes and how they are declared.
There are two types of variables:Local variable which are declared within a main function and Global variables which are declared outside the main function.Like in C++ it uses data types and examples of data types are
- Boolean
- Character
- Integer
- String
- Floating points
Examples of data types are called variables.Variables is a named memory location for storing data
Example of variable declaration in C++
#include<iostream>
Using namespace std
Int main()
{
Int value,score,num;
String name;
Float pie;
Boolean gives a Yes or NO and also gives true or false statements.Once you know the basics of C++ a programmer is capable to know other syntax and basics of other Programming languages.
1.To know the basics
2.Declarations of variables
3.operators
4.arrays
5.functions
6.Loops type
Once who know the above tips you are able to code and come up with your own program.