Characteristics of Object Oriented programming language - oops
What are the characteristics of Object Oriented programming language?Encapsulation – Encapsulation is capturing data and keeping it safely and securely from outside interfaces.
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.
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.
Abstraction- The ability to represent data at a very conceptual level without any details.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.
|
Encapsulation concept in OopsEncapsulation is the process of binding / compartmentalizing the elements of an abstraction. It comprises of data and operations on data in a single unit......