Tuesday 15 March 2016

What are the characteristics of Object Oriented programming language?

Main characteristics of opps are:-

  • Abstraction
  • Encapsulation 
  • Reusability/Inheritance
  • Polymorphism

Abstraction- The ability to represent data at a very conceptual level without any details.

Encapsulation – Encapsulation is capturing data and keeping it safely and securely from outside interfaces. In another way we can say that this is how we implement abstraction.
Like we use access specifier to define scope of data or object.

  • The wrapping up of data and functions into a single unit is known as encapsulation.
  • Data encapsulation is the most striking feature of a class.
  • Abstraction refers to the act of representing essential features without including the background details or explanations.
  • Encapsulation is the hiding of information in order to ensure that data structures and operators are used as intended and to make the usage model more obvious to the developer.

Inheritance- This is the process by which a class can be derived from a base class with all features of base class and some of its own. This increases code reusability.

  • Inheritance is the process by which objects of one class acquire the properties of objects of another class.
  • It supports the concept of hierarchical classification.
  • Creating new class is also known as  the derived class
  • The existing class is also called the base class.

Polymorphism- This is the ability to exist in various forms. For example an operator can be overloaded so as to add two integer numbers and two floats.

  • Polymorphism is another important OOP concept.
  • The word polymorphism is derived from two Latin words poly (many) and morphos(forms).
  • An operation many exhibit different behaviours in different instances..
  • The behaviour depends upon the types of data used in the operation.

What are the characteristics of Object Oriented programming language?
Some key features of the Object Oriented programming are:
- Emphasis on data rather than procedure
- Programs are divided into entities known as objects
- Data Structures are designed such that they characterize objects
- Functions that operate on data of an object are tied together in data structures
- Data is hidden and cannot be accessed by external functions
- Objects communicate with each other through functions
- New data and functions can be easily added whenever necessary
- Follows bottom up design in program design

What are the characteristics of Object Oriented programming language?

The characteristics of OOP are:
Class definitions – Basic building blocks OOP and a single entity which has data and operations on data together

Objects – The instances of a class which are used in real functionality – its variables and operations

Abstraction – Specifying what to do but not how to do ; a flexible feature for having a overall view of an object’s functionality.

Encapsulation – Binding data and operations of data together in a single unit – A class adhere this feature

Inheritance and class hierarchy – Reusability and extension of existing classes

Polymorphism – Multiple definitions for a single name - functions with same name with different functionality; saves time in investing many function names Operator and Function overloading

Generic classes – Class definitions for unspecified data. They are known as container classes. They are flexible and reusable.

Class libraries – Built-in language specific classes

Message passing – Objects communicates through invoking methods and sending data to them. This feature of sending and receiving information among objects through function parameters is known as Message Passing