answersLogoWhite

0

OOP, or Object Oriented Programming, is different from procedural programming, mainly because of the focus of the language. OOP focuses on objects, or collections of data and actions all bundles together into a nice little package. Procedural programming focuses on actions. For example, consider the following programming problem:

A farmer needs to calculate the number of bags of feed that his many types of animals, such as sheep, cows, and goats, will need. Design a friendly GUI (Graphical User Interface) and program that will accomplish this for him. Use the current prices, in USD, from Wikipedia of one bag of feed for the designated animal.

A Java programmer would start out by defining several classes, or "blueprints" for objects, such as Cow and Chicken for the animals, Button and Window for the onscreen GUI, and WikiReader and Parser for the act of getting the prices from Wikipedia. Then, he would link them all together and generally start coding.

A FORTRAN programmer would start by making procedures: getPriceFromWikipedia(), calculatePriceForAnimal, or sumUpPrices(). He would put references to each of the methods, for example sumUpPrices would invoke calculatePriceForAnimal for each of the animals.

So there you have it.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What is full form of oop's?

Object Oriented Programming


Is PHP object oriented?

Yes - 'advanced' PHP programming uses Object Oriented Programming (OOP).


Full form of oops?

The full form of OOP is Object-Oriented Programming.


What programming category does OOP belongs?

Object-oriented programming is a category of programming languages. On a larger scale, OOP would belong under the imperative programming paradigm.


Data-Oriented Programming in Java?

Data-Oriented Programming (DOP) focuses on decreasing the complexity of the Object-Oriented Programming (OOP) application systems by rethinking data


Vbnet is which type of language Service Oriented Architecture Programming Language Object Oriented Programming Language Procedural Oriental Programming Language?

Visual Basic .NET (VB .NET) is an OOP, an Object-Oriented Programming Language. It's paradigm is both OOP and Event-Driven, but that's beside the point.


Is structured programming an OOP principle?

No. Structured programming came before object-oriented programming. Most OOP languages make use of structured programming, but only because they were already using structured principals, not because they now use OOP principals.


What is oops code in computer science?

oop is just object oriented programming...


Why object oriented programming language is called oops?

It isn't called oops, it's called OOP. It's an acronym for Object Oriented Programming.


What are the disadvantages of object oriented programming over structured programming?

actually oop concept have some disadvantage when compared to structured programming


What three concepts are the basis for object-oriented programming?

Classes, objects and methods are the three concepts for OOP programming.


What are the concepts of object oriented programming in c plus plus?

The concepts of OOP in C++ are the same as for OOP in any other programming language: abstraction, encapsulation, inheritance and polymorphism.