Question:
Programming ??
anonymous
2007-09-23 22:25:35 UTC
What is Object Oriented Programming and what are the other types of programming.
Nine answers:
ryan_macalinao5472
2007-09-23 22:33:35 UTC
Object-oriented programming (OOP) is a programming paradigm that uses "objects" and their interactions to design applications and computer programs.



Annotative programming (as in Flare language)

Aspect-oriented programming (as in AspectJ)

Attribute-Oriented Programming (as in Java 5 Annotations, pre-processed by the XDoclet class; C# Attributes)

Automata-Based Programming

Class-based programming, compared to Prototype-based programming (within the context of object-oriented programming)

Concept-oriented programming is based on using concepts as the main programming construct.

Constraint programming, compared to logic programming

Cybernetics Oriented Programming

Dataflow programming (as in spreadsheets)

Flow-driven programming, compared to event-driven programming

Function-level programming

Functional programming

Imperative programming, compared to declarative programming

Literate Programming

Logic programming (as in Prolog)

Message passing programming, compared to imperative programming

Nondeterministic programming

Object-oriented programming (as in Smalltalk)

Pipeline programming (as in the UNIX command line)

Policy-based programming

Procedural programming, compared to functional programming

Process-oriented programming a parallel programming model.

Reactive programming

Recursive programming, compared to iterative programming

Reflective programming

Scalar programming, compared to Array programming

Component-oriented programming (as in OLE)

Structured programming, compared to unstructured programming

Subject-oriented programming

Tree programming

Value-level programming, compared to function-level programming
Trevor Hart
2014-12-04 07:28:35 UTC
Programming typically can be divided into two paradigms, which are object oriented and functional programming.

A functional language is something like C that doesn't use classes or objects, it only uses functions and data structures.

Object Oriented Programming is different in the sense that they generally make it easier to track "instances". So in object oriented programming you have something called a class, which wraps together functions and variables into a single block of code. Whenever you want to create something that has that class type you are creating an "object". This object, as long as it exists, has access to any of the functions and variables contained within the class. So for example I may have a calculator class, the calculator class may have a calculated number variable, and an add and subtract function. So a calculator object could call these functions to add and subtract and then it can modify the calculated number variable within the class so that we can use that variable to show the calculations that were performed, and we could also take advantage of these "instances" of the variable by using the variable over and over so you could subtract a number from it, then add something to it and the variable would save each change. It's important to note also that we call a function in a class a "method" and a variable within a class a "member". That's really all there is to it as far as the basics go. You'll just have to practice it to understand, believe me I remember when I first used classes, it was EXTREMELY confusing, but I promise you'll get the hang of it.
Shariq (http://coinsindia.info)
2007-09-24 02:15:07 UTC
Object Oriented Programming is a way of Programing where we have to emphsie more on how program is organised. Before OPP programmers consider only on logic not on overall program design, data security, program organisation, code reusability. As progrmes gettign biggers and bigger these things come into consideration and concept of OPP was introduced. C++, Java etc are Object Oriented Languages. In OPP programmer use Class and Objects. Class Servers as a Template eg:

Suppose Car is a class and it has various properties like

Model, Manufacturere, Color, Engine Power etc. During Class definition these all properties are taken into mind and once the class is defined programmer can create as many objects on class car having all properties different.



Car Toyota;

Car Ford;

Car Mitsubishi;



Here Toyota, Ford, Mitsubishi are known as objects of type class having properties (Model, Manufacturere, Color, Engine Power ) etc. Also Data Security is always given priority in OPP and hence only methods defined in class definition can access class data(properties) and not external method.

Also if progammer want to create a class sharing some properties or methods of another class he/she can derive a new class by using Inheritance.

This is just a short discription of OPPS, but some cahracterictis of OPPS are

1. Data Encapsulation & Hiding

2. Ineritance

3. Polymorphism and Overloading



Before OPP many other type of programming methodologies were used some of them are



1. Procedural Programming

2. Structutred Programming

3. Modular Programming

etc
Daal
2007-09-23 22:35:12 UTC
Object-oriented programming (OOP) is a programming paradigm that uses "objects" and their interactions to design applications and computer programs. It is based on several techniques, including inheritance, modularity, polymorphism, and encapsulation. It was not commonly used in mainstream software application development until the early 1990s. Many modern programming languages now support OOP.



There are four programming paradigms.

1. Imperative

2. Object-oriented

3. Functional

4. Logic



Some say there's a fifth, the Concurrent programming paradigm.



I would suggest reading "Programming Languages: Concepts and Constructs" by Ravi Sethi
tony.targonski
2007-09-23 22:42:48 UTC
Object Oriented Programming (OOP) is a paradigm of programming where you think about the logic in terms of objects, models, and what they can do.



Other "types" include Procedural and Functional, though there are others as well, and some languages mix more than one together.
Connie
2016-06-02 08:17:28 UTC
Object Oriented programming is a way of looking at a complex system in terms of its smallest pieces, which allows you to build complexity by stacking simple on top of simple.



For example if you want to build a bicycle you would start by recognizing it as

- a frame

- handlebar

- seat

- front wheel

- back wheel



Then you would look at the wheel as:

- rim

- spokes

- tire

- inner tube



So to build the bike you would first build spokes. Then a rim, then inner tube, then tire. Now that you have all those you would assemble them as "wheel."



You would continue in this fashion so that you would never at any point be thinking of bicycle - you would be thinking of things on a more manageable mental scale for example thinking of "tire" wouldn't be overwhelming but thinking of "bicycle" would be quite complicated.



So Object Orientated programming is nothing more than a way of managing complexity in design and in building.



www.paratutors.com
anonymous
2014-05-27 04:13:04 UTC
OOP lets you define object and their interaction. Say your programming a graphical user interface (gui) and each icon on the gui represent an object in program. Objects can be structs, classes, or any datatype.
Jim C
2014-01-05 20:33:29 UTC
I like thinking of OOP as writing 'Legos'. There are inputs (the bottom of the brick) and outputs. What goes on inside the brick is nobodies beezewax but mine - unless it it is broken.



The inputs are usually exposed 'get', 'put', and 'do something'. Usually (though not condoned) variables are exposed.



It should be noted, however, that the exposed functions/methods MUST be very well documented, and have no side effects are not documented.
Hamzah Shahid
2014-02-21 11:44:54 UTC
The saddest part of our century is that we have provided literally everyone with computers, laptops, smartphones and tablets but more than half of these users do not know what goes into making these devices do our biding; what exactly happens when we click our mouses and track-pads or tap the screens of our iPhones and iPads?

read more

http://scienceandinfotech.blogspot.com/2014/02/why-exactly-do-we-need-computer.html


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...