• Post Reply Bookmark Topic Watch Topic
  • New Topic

How Do I Think & Design in OOP?  RSS feed

 
Gary Farms
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am relatively new to object oriented programming. I'm not accustomed to thinking in terms of packages, classes, objects, etc. before writing code.
How do I begin to think in terms of OOP while designing a program or system before coding it? Is there any book or technique that could help me?
 
partha sarathy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear friend,
there is nothig big in learing oops as it is very easy. Just relate it to your life things and you can understand it very easily. for example take a example of a car. in C if you design a car then for instance if you want a ford car, saperate design and parameters must be given for that. the same for other cars, so duplication comes and no sharability is there. but if you try to design it in oops then it becomes portable. like tahe car as a class and have all the parts like engine, wheel, seat, ect as attributes of the car class. then using this create various types of cars using the same defination of class car. so it becomes easier for you to design a ford or a benz car by just extending the cars class. this is one cocept of oops called inheretance. In the same way you can implemet for other cocepts of the oops with the car example. got it.
-> if want reference book - using c++ by robert lofere
with regards
partha
 
Amit Zzz Kulkarni
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gary,
I would suggest for your smooth migration to Java 2 books(rolled words deliberately ),they are a bit intimidating for a few days but after a month you will swear by them.
(*)Core Java 2 vol 1 & 2 -- Cay Horstmann & Gary Cornell.
Check it out at bookpool.com (40 % off)
(*)Object-Oriented Design in Java (Mitchell Waite Series)
-- by Stephen Gilbert, Bill McCarty
It will be also good if you can get hold of these books later...
(*)Object Oriented Design Heuristics -- Arthur J. Riel .It is in C++ but still good for fundamentals.Check out thumbnails at and you will know what I mean http://www.cse.unsw.edu.au/~timm/pub/subjects/oois96/rules.html
(*)The Design Patterns Java Companion -- James Cooper
Emphasises Swing mostly and covers ALL patterns in the book below .I think you may like this better.
(*)Elements of Reusable Object Oriented Software --
Erich Gamma,Richard Helm,John Vlissides & Ralph Johnson.
again mostly in C++ and a little bit of Smalltalk ,this is 'the' book for Design Patterns which is like learning to drive a car after you have learnt to walk.
Saved the best for the last Will fill up my profile and you can take a look at the URL over there.
Cheers
Amit
Originally posted by Gary Farms:
I am relatively new to object oriented programming. I'm not accustomed to thinking in terms of packages, classes, objects, etc. before writing code.
How do I begin to think in terms of OOP while designing a program or system before coding it? Is there any book or technique that could help me?

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!