IITDU Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Source code of observer pattern

3 posters

Go down

Source code of observer pattern  Empty Source code of observer pattern

Post by BIT0112-Rokon Wed Jan 12, 2011 7:11 am

Problem:
Suppose there are some companies like IBM, Microsoft, Apple etc. These companies have their share price. There are some investors like Suzan, Sharif, Iqbal. They are interested about the share prices of the companies. The investors can register to the companies if they are interested to the share price of a specific company. The investors can unregister if they don’t feel interested any more to a specific company.
When the share price of a company changes, the registered investors are automatically informed about the changed price.

Write a code that shows the above features.

Solve:
Sir already explained enough about the problem domain and what is observer pattern. So here Im here going to give the source only that I have compiled in my machine.

so [You must be registered and logged in to see this link.] it goes.

Cheers!
BIT0112-Rokon
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

http://blog.codexplo.org

Back to top Go down

Source code of observer pattern  Empty Re: Source code of observer pattern

Post by BIT0122-Amit Mon Jan 17, 2011 9:36 pm

good work.
RPP.

I have also done this. Erm... with a little bit different approach.
Shall I give the link here?
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Source code of observer pattern  Empty Re: Source code of observer pattern

Post by BIT0112-Rokon Mon Jan 17, 2011 10:20 pm

why not?
BIT0112-Rokon
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

http://blog.codexplo.org

Back to top Go down

Source code of observer pattern  Empty Re: Source code of observer pattern

Post by BIT0122-Amit Mon Jan 17, 2011 11:45 pm

Here is my version of the observer pattern implementation.
it is not exactly according to the problem as described in class, I have modified it here and there.

You can view it from [You must be registered and logged in to see this link.]
BIT0122-Amit
BIT0122-Amit
Founder
Founder

Course(s) :
  • BIT

Blood Group : O+
Posts : 4187
Points : 6605

https://iitdu.forumotion.com

Back to top Go down

Source code of observer pattern  Empty Re: Source code of observer pattern

Post by BIT0119-Asif Sat Jan 29, 2011 12:03 am

Bazlu your link is giving problem...please look into it.
BIT0119-Asif
BIT0119-Asif
Study Moderator
Study Moderator

Course(s) :
  • BIT

Blood Group : B+
Posts : 163
Points : 432

Back to top Go down

Source code of observer pattern  Empty Re: Source code of observer pattern

Post by BIT0112-Rokon Sat Jan 29, 2011 12:16 am

I think, my link is doing good ...
BIT0112-Rokon
BIT0112-Rokon
Programmer
Programmer

Course(s) :
  • BIT

Blood Group : O+
Posts : 673
Points : 1269

http://blog.codexplo.org

Back to top Go down

Source code of observer pattern  Empty Re: Source code of observer pattern

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum