Source code of observer pattern
3 posters
IITDU Forum :: Academics (BIT) :: Semester 5 :: SE 506
Page 1 of 1
Source code of observer pattern
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!
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!
Re: Source code of observer pattern
good work.
RPP.
I have also done this. Erm... with a little bit different approach.
Shall I give the link here?
RPP.
I have also done this. Erm... with a little bit different approach.
Shall I give the link here?
Re: Source code of observer pattern
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.]
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.]
Re: Source code of observer pattern
Bazlu your link is giving problem...please look into it.
BIT0119-Asif- Study Moderator
- Course(s) :
- BIT
Blood Group : B+
Posts : 163
Points : 432
Similar topics
» Presentation slides of Observer pattern
» Design Pattern Exam: Some more information About Code, and class diagram and etc
» Design Pattern study material: Composite Pattern
» Design pattern Assignment - fly weight pattern
» Export Your Source code in HTML format
» Design Pattern Exam: Some more information About Code, and class diagram and etc
» Design Pattern study material: Composite Pattern
» Design pattern Assignment - fly weight pattern
» Export Your Source code in HTML format
IITDU Forum :: Academics (BIT) :: Semester 5 :: SE 506
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford