Skip to main content

What is Object oriented programming

What is Object oriented?


Object-oriented programming OOP is a programming language model organized around objects rather than "actions" and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data.

The programming challenge was seen as how to write the logic, not how to define the data. Object-oriented programming takes the view that what we really care about are the objects we want to manipulate rather than the logic required to manipulate them. Examples of objects range from human beings described by name, address, and so forth to buildings and floors whose properties can be described and managed down to the little widgets on a computer desktop such as buttons and scroll bars.

The first step in OOP is to identify all the objects the programmer wants to manipulate and how they relate to each other, an exercise often known as data modeling. Once an object has been identified, it is generalized as a class of objects think of Plato's concept of the "ideal" chair that stands for all chairs which defines the kind of data it contains and any logic sequences that can manipulate it. Each distinct logic sequence is known as a method. Objects communicate with well-defined interfaces called messages.

The concepts and rules used in object-oriented programming provide these important benefits:

ü  The concept of a data class makes it possible to define subclasses of data objects that share some or all of the main class characteristics. Called inheritance, this property of OOP forces a more thorough data analysis, reduces development time, and ensures more accurate coding.

ü  Since a class defines only the data it needs to be concerned with, when an instance of that class an object is run, the code will not be able to accidentally access other program data. This characteristic of data hiding provides greater system security and avoids unintended data corruption.
ü  The definition of a class is re useable not only by the program for which it is initially created but also by other object-oriented programs and, for this reason, can be more easily distributed for use in networks.

ü  The concept of data classes allows a programmer to create any new data type that is not already defined in the language itself.

Simula was the first object-oriented programming language. Java, Python, C++, Visual Basic .NET and Ruby are the most popular OOP languages today. The Java programming language is designed especially for use in distributed applications on corporate networks and the Internet. Ruby is used in many Web applications. Curl, Smalltalk, Delphi and Eiffel are also examples of object-oriented programming languages.

OOPSLA is the annual conference for Object-Oriented Programming Systems, Languages and Applications.

Advantages of Object Oriented Programming:

1.      Code Reuse and Recycling: Objects created for Object Oriented Programs can easily be reused in other programs.

2.      Encapsulation (part 1): Once an Object is created, knowledge of its implementation is not necessary for its use. In older programs, coders needed understand the details of a piece of code before using it (in this or another program).

3.      Encapsulation (part 2): Objects have the ability to hide certain parts of themselves from programmers. This prevents programmers from tampering with values they shouldn't. Additionally, the object controls how one interacts with it, preventing other kinds of errors. For example, a programmer (or another program) cannot set the width of a window to -400.
4.      Design Benefits: Large programs are very difficult to write. Object Oriented Programs force designers to go through an extensive planning phase, which makes for better designs with fewer flaws. In addition, once a program reaches a certain size, Object Oriented Programs are actually easier to program than non-Object oriented ones.

5.      Modifiability: it is easy to make minor changes in the data representation or the procedures in an OO program. Changes inside a class do not affect any other part of a program, since the only public interface that the external world has to a class is through the use of methods;

6.      Extensibility: adding new features or responding to changing operating environments can be solved by introducing a few new objects and modifying some existing ones;

7.      Maintainability: objects can be maintained separately, making locating and fixing problems easier;

8.      Re-usability: objects can be reused in different programs.

Disadvantages Object Oriented Programming:

1.      Takes more memory, so it causes the system to run slower. For an example creating and destroying objects take more memory and causes the system to slow.


2.      In an optimal design, little support is given to identify the objects. 

Comments

Popular posts from this blog

What is Procedural programming

What is Procedural programming?   Procedural programming is a term used to denote the way in which a computer programmer writes a program. This method of developing software, which also is called an application, revolves around keeping code as concise as possible. It also focuses on a very specific end result to be achieved. Imperative programming is another term used to signify this type of development. When it is mandatory that a program complete certain steps to achieve specific results, the code is said to have been written according to procedural programming. Software developers who program according to this concept usually write a preliminary plan in plain language prior to actually writing code. Procedural programming often is taught to beginner students of computer science because of the logic behind it. They are encouraged to think in terms of a series of necessary steps that must be taken to accomplish a goal. For example, the professor might encourage the class to
Types of Network Topologies Alternatively referred to as a network topology, a topology is the physical configuration of a network that determines how the network's computers are connected. Common configurations include the Bus topology, Mesh topology, Ring topology, Star topology, Tree topology and Hybrid topology. See each of these topologies Bus Topology A bus topology is a type of network setup where each computer and network device is connected to a single cable or backbone. Below is a visual example of a simple computer setup on a network using the bus topology. Mesh Topology A network setup where each computer and network device is interconnected with one another, allowing for most transmissions to be distributed, even if one of the connections go down. This topology is not commonly used for most computer networks as it is difficult and expensive to have redundant connection to every computer. However, this topology is commonly used for wireless networks. Belo

What is data analysis

What is data analysis? Ø   The process of evaluating data using analytical and logical reasoning to examine each component of the data provided. This form of analysis is just one of the many steps that must be completed when conducting a research experiment. Data from various sources is gathered, reviewed, and then analyzed to form some sort of finding or conclusion. There are a variety of specific data analysis method, some of which include data mining, text analytics, business intelligence, and data visualizations. What is data analysis and designing? Ø   Data analysis and design provides the foundation for delivering BI applications. Analysis concentrates on understanding business needs for data and information. Design translates business information needs into data structures that are adaptable, extensible, and sustainable. Core skills include needs analysis, metrics definition, and data modelling.