Good online explanation of OOP?

  • Thread starter aychamo
  • Start date
  • #1
374
0
Hey guys

Does anyone know of an excellent online source that can explain the basics of OOP? I grew up not using OOP, just using the normal style of programming (and its' name escapes me now). You know, just line by line, ahh, yes, sequential.

I understand the very extreme basics, like a child class inside of a class can inherit properties from it's parent class. And I think methods are like procedures/functions. ..

I ask because I downloaded SharpDevelop and I'd like to start messing around in C#. I'm going to try a simple program just to get used to things. I see all these get and put methods, and it seems there are no variables anymore? I dunno.

Any links? Thank you kindly.
 

Answers and Replies

  • #3
437
1
The Object Oriented Analysis and Design book from Booch is almost the best guide to object orientation. But since you want sources from the www you can find this article very useful
http://www.toa.com/pub/OOBasics.pdf [Broken]

There's another excellent source for those who got used to other programming paradigms such as structured programming, and want to transit to OOP. Indeed this is the article which my supervisors had suggested years ago to me to read and the one from which I learned OO concepts and their justification. I suggest you to read it all because it is also very entertaining.
http://web.engr.oregonstate.edu/~budd/Books/oopintro2e/info/chap01.pdf

I see all these get and put methods, and it seems there are no variables anymore? I dunno.
Yes, there exist variables in OOP but they are called attributes and are embedded within objects. Public set and get methods are just needed to make these attributes accessible to other objects, because it's considered a good practice to put attributes as private. You can have intermediate variables also inside methods. In hybrid languages like C++ you can have them in main() or global outside main().
 
Last edited by a moderator:

Related Threads on Good online explanation of OOP?

Replies
1
Views
16K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
4
Views
4K
Replies
3
Views
9K
  • Sticky
  • Last Post
Replies
22
Views
23K
  • Last Post
Replies
3
Views
9K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
11
Views
3K
  • Last Post
Replies
2
Views
2K
Top