richy simple answer is
Object Orientated Programming = A style of programming that supports encapsulation, inheritance, and polymorphism. Some languages are inherently object oriented (eg, Smalltalk and Java) while other languages support object oriented extensions (eg, C++ and Visual Basic). It is often stated that Visual Basic is not truly an object oriented language because it doesn't support inheritance. If you make that statement then you have to say that COM is not object oriented either, because COM does not support inheritance either
2006-08-08 21:45:49
·
answer #1
·
answered by Joe_Young 6
·
0⤊
0⤋
Ok, here goes, really simple:
Object Orientated Programming is where each peice of code becomes an Object.
You can then easily reference that Object from anywhere else in your program and as many times as you wish.
A window on your screen is an Object and a button in a form is also an Object.
When someone writes a program to show a form in a window with a button. It just calls an instance of each object and names them.
All the objects' properties can be changed, ie size, position, text, colour. If you called an Instance of an Object trevor, you could refer to that Instance as trevor.
so:
trevor.color = red
would make trevor red
trevor.length = 100
would make trevor 100 long
Hope this makes some sense as a very basic introduction???
2006-08-08 22:22:10
·
answer #2
·
answered by stickyricky 3
·
0⤊
0⤋
Programmers frequently group related chunks of information together. For example, the four corners of rectangle. Makes it easier to keep track. However, with chunks of stuff you still need to dwell on those corners individually. So... rectangle "r".
Object oriented programming (OOP) abstracts things. You can create functions related to the chunks. For example, a function to return the area of the rectangle. To get the area of said rectangle, you might call "r.Area()".
OOP also supports deriving new chunks from the old... say for special cases. So we can derive a chunk for squares more easily. The square chunk can reuse the rectangles "Area" function, saving some typing.
Things can get very abstract though. You could create a series of derived classes for circles, squares, polygons, etc... Some would require custom "Area" functions, others not.
The ultimate in abstracting however is polymorphism. Ye gads what a word. Programmers frequently prefer pointers to chunks of information, instead of the chunks themselves (literally the address of a chunk in memory). Pointers are smaller & faster.
With OOP polymorphism, you might not have any idea what a pointer is pointing at. However, if you call the Area function "ptr->Area()" you get the desired result. Different area functions are used based on the version of data pointed at. Neat stuff.
OOP in a nutshell.
2006-08-08 21:22:36
·
answer #3
·
answered by phbbt 1
·
0⤊
0⤋
merchandise orientated Programming isn't undemanding to describe contained in the area Yahoo supplies besides the undeniable fact that it contains 3 key recommendations. Encapsulation, Polymorphism, and Inheritance i recommend getting a e book that teaches you C++. C++ is a reliable language to learn truly of C certain because it makes coping with your code a lot less confusing. The programming languages you favor to learn finally remember on precisely what style of programming you'd be doing.
2016-11-23 16:56:19
·
answer #4
·
answered by Anonymous
·
0⤊
0⤋
The basic principle of OOP is whatever is program or code we do it for an object. An object, technically, is nothing but a "Class" and within that class we write all the program and code that defines behavior of the class.
so, whatever program or code we write, we write inside a class or object. that's why, its called Object Oriented Programming.
I hope u got a little idea about it.
2006-08-08 17:15:56
·
answer #5
·
answered by branded_don 2
·
0⤊
0⤋
Object Oriented Programming is a programming style in which programmer defines real world entities (main) as objects, when we talk about a invoice in OOPS invoice is not only stored as record but first it will be created as object in memory, after that it will be stored as record in database. if we want to create other invoice we have to create other object. only properties will be different. Same way I can build Accounting Software in which Accounts are objects & Opening Balance are their Properties, and Calculating Closing balance should be Method to get output.
The best example of Object Oriented Programming is Age of Empires Game. you will find more about oops there, you only have to imagine.
2006-08-09 07:56:33
·
answer #6
·
answered by pratikmx 2
·
0⤊
0⤋
Basicly object oriented progaming means your program code to work with objects, what an object is depends on the language and what you're programing.
For example in flash's actionscript buttons are objects. In javascript a window is an object.
With object oriented programing you can writhe code to do stuff with and to these objects.
2006-08-08 16:33:26
·
answer #7
·
answered by Mo 1
·
0⤊
0⤋
OOP's dead easy. Write an "object" which can do anything, then call it to do that from other script.
2006-08-12 07:52:34
·
answer #8
·
answered by nert 4
·
0⤊
0⤋