So you want to learn object oriented programming?!
Good choice .But before you start learning with the style of an enraged spanish bull you should understand its premises.
Object oriented programming (OOP) is a programming paradigm,that means a style of coding(google for paradigm).
Its purpose is to solve problems faced by coders and to make efficient the time spent coding.
Its purpose is to solve problems faced by coders and to make efficient the time spent coding.
Let's understand a computer programming language. Computer programming languages are cataloged in to 4 generations. The first generation is the machine code,pure CPU instructions.The 2nd generation are the assembly languages . The third generation are languages like C/C++,C#,Java,Delphi.
The 4th generation doesn't matter right now.
The generations appeared because when you do complex stuff using tiny,finite and simple bricks(machine instructions) you observe patterns. And if you give those code patterns a simple human readable name, you can make another program ( a compiler) to replace that name with the code it represents.
At one point people figured this:
With computer programs you are trying to solve problems from the real world. By programming you are actually describing OBJECTS from the real world in the solution world(the computer). You are making a functional/mathematical description of OBJECTS from the real world.
OBJECTS of one kind (species) have a mold(CLASS).
Now coming back to 3rd generation languages. In those languages you toy around with variables and functions. What if you can give a common name to a number of functions and variables that describe an OBJECT(rallied under one name,symbol)? To make an object out of different variables and functions we need to ENCAPSULATE those functions(methods) and variables(attributes). What if we want to INHERIT from another mold(CLASS) functions and variables or add functions and variables to an existing mold(CLASS) and give it a new name: we need to INHERIT.
The basics concepts of OOP:
-ENCAPSULATION
-INHERITANCE
-POLYMORPHISM (one name,different implementations|concept applied to functions a.k.a methods)
GOOGLE FOR MORE.
Cool man!Very useful :P
ReplyDeleteSupp
Very useful, thanks for the OOP tips.
ReplyDeleteinterestig blog ;) supp you
ReplyDeleteHa! CS major here.
ReplyDeleteinterestig post
ReplyDeletecool blog, I'm following.
ReplyDeleteAlmost is correct :P
ReplyDeletethats why programming tasks make me pull my hair out,,,
ReplyDeletetnq for tips
ReplyDeleteAwesome start! Was researching OOP anyways, so this really, REALLY helps
ReplyDeletenice tip
ReplyDeleteThanks, very informative! However, I don't really think I'll apply this anytime soon =P
ReplyDelete<3 thanks
ReplyDeletehad to refresh the page a bit cause my internet was slow ;)
I have no idea what any of this means, but hopefully, some day, I'll take it upon myself to learn all this stuff.
ReplyDeleteI'm taking programming classes now.
ReplyDeletei love your blog man, keep it up..
ReplyDeleteI had touched on some of the finer points of programming in my earlier university years, but have since stopped taking classes like that. I miss it, in some ways, and am so very glad it's over in others. :)
ReplyDeleteGreat tips bro.
ReplyDeleteWow, that is informative.
ReplyDeleteHey, I'm back from the dead! Come and visit my blog!
ReplyDeleteI'm taking a night class on stuff like this, and I find this extremely helpful. I'll be back for more tips; thanks!
ReplyDeleteXD confused me but I understood a lot of it
ReplyDeleteWhen I saw "object orientated programming" first thought that came to mind was Java. This was one of the main key terms drilled into head during my Java classes.
ReplyDelete^ fuck java, bro
ReplyDeleteNow this is something I can appreciate
ReplyDelete