Last post Jan 15, 2014 02:50 AM by chandan777
Jan 14, 2014 11:49 PM|chandan777|LINK
I am developing web apps since last two years using c#.
I know the concepts of oop, but havn't yet implemented them like inheritance,abstract classes,overloading,overriding,interfaces, delegates etc.
I am going to work on a new project which is online booking of sports grounds. It will have features like player registrations, umpire registration, Shopping cart,search filters to search grounds based on location, price, facilities, time slots etc, inbox,
sent messages, etc.
So what would be scenarios where i can implement interfaces,delegates ,overriding etc. Please suggest with an example.
Thanks in advance
Jan 15, 2014 01:04 AM|kaushalparik27|LINK
That is a kind of broad question. You can start analyzing the requirement and based on that you can decide the design architecture of your application where you will come across proper usage of oop in your application. Just take an example of Player and
Umpire entity. There can be many parameters/properties similar for both of these entities. So, there can be a base class for say "Person" and derived classes for Player and Umpire entites as child classes. Another example is; if you prefer
repository pattern for your application architecture then you will have to built interfaces per entity operation or functionality. For Shopping cart which might be invovled with discount model, payment methodology; various design patterns can be explored
to have a oop concepts implemented in project. I would suggest to explore some
design patterns online, that would help a lot.
hope it helps./.
Jan 15, 2014 02:50 AM|chandan777|LINK
Thanks. This is helpful.
I want few more practicle examples similar to kaushal just mentioned.