Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to develop *real life* oop skills?

Tags:

oop

ooad

I've been studying OOP for quite a while now and I have a good grasp of the theory. I read the Head First book on OOP and, while it reinforced a lot of the theory, I found the case studies to be somewhat trivial.

I find that I'm applying OOP principles to my code each day, but I'm not sure if I'm applying them correctly. I need to get to the point where I am able to look at my code and know whether I'm using inheritance appropriately, whether my object is cohesive enough, etc.

Does anyone have any good recommendations (books, online guides, blogs, walk-throughs, etc.) for taking the next step in developing solid OOP skills?

I am working primarily in .NET (visual basic), but I welcome suggestions that incorporate various platforms.

like image 920
Rob Sobers Avatar asked Nov 09 '08 22:11

Rob Sobers


People also ask

How can I improve my OOP skills?

Learn C++ or Java. If you can learn C, you can learn C++ and I recommend java first. Why? Because C++ and Java both works on object oriented programming also these are not too complex languages.

How OOPs is used in real life?

For Example: A car is having multiple parts.. like steering,wheels,engine...etc..which binds together to form a single object that is car. So, Here multiple parts of cars encapsulates itself together to form a single object that is Car.

How is OOP related to real-world?

Object Oriented Programming is considered as a design methodology for building non-rigid software. In OOPS, every logic is written to get our work done, but represented in form of Objects. OOP allows us to break our problems into small unit of work that is represented via objects and their functions.


1 Answers

You might want to try to read (and write) some Smalltalk for a while. Squeak is a free implementation that can show you the power of a fully object-oriented environment (unlike java or .net). All library code source is included. The language itself is incredibly simple. You'll find that java and c# are slowly adding the features well-known to Smalltalk since 1980.

like image 75
Stephan Eggermont Avatar answered Oct 25 '22 17:10

Stephan Eggermont