| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Aug 2006
Age: 28
Posts: 275
Thanks: 0 Thanked 5 Times in 5 Posts Thanks: 0
Thanked 5 Times in 5 Posts
Rep Power: 5
|
OOPs Question.Please help me. with example.
Friends, I am facing this question again and again in the Interviews.Please help me with your answers.
Q.) Tell me where you have used OOP's concept in your project? Inheritance,abstraction,encapsulation,Polymorphism Please help me with your answers. Give me an example and explain it. My project is an Internet banking project. How these OOP's concept used in this project? Please help me. If i can answer this question in the interview, I am sure I will get through the interview easily.I am stucking at this question and could not explain where I have used OOP's concept in my projec. Please help me How to answer this question? |
|
|
|
|
|
#2 (permalink) |
|
Super Moderator
Join Date: Feb 2006
Location: Hyderabad
Posts: 2,355
Thanks: 117 Thanked 241 Times in 198 Posts Thanks: 117
Thanked 241 Times in 198 Posts
Blog Entries: 4
Rep Power: 51
|
Re: OOPs Question.Please help me. with example.
Inheritance -
In banking, you will have many accounts like savings, corporate, personal and so on. But every account will have few features in common like account_id and holding_person_id (refers to customers table). So "Account" is a base class (or interface as situation demands) and you can extent them to implement/extend classes like SavingsAccount, CorporateAccount and PersonalAccount and so on to implement account specific feature like min. balance, max. transaction amount per day or per transaction and additional features available and so on. Polymorphism - Base class Account has methods like debit() and credit() irrespective of account type. In every child class you are override its implementation and the same methods can be used for credit card accounts also with different implementations based on account type. Abstraction & encapsulation - By implementing general methods like credit() and debit() along with class variables at account level, you are encapsulating/binding both data and methods to work together which also defines an abstract layer to simplify any further implementation... Hope this helps. Thanks, Krishna
__________________
Give 1 cup rice to a hungry Indian just by a mouse click. No money, no form filling, no hassle... Click here for the donation. |
|
|
|
|
|
#3 (permalink) |
|
Senior Member
Join Date: Aug 2006
Age: 28
Posts: 275
Thanks: 0 Thanked 5 Times in 5 Posts Thanks: 0
Thanked 5 Times in 5 Posts
Rep Power: 5
|
Re: OOPs Question.Please help me. with example.
thanks Krishna. for replying back tomy questions and helping me with your answers.
thank youvery much. and one moe help i needed from you. Can you help me in my project "Internet Banking". I want the answer for this question: Q.) How funds are transferred from one Account to Another account? Please give me an example toexplain this question in the Interviews. Please help me. |
|
|
|
|
|
#4 (permalink) |
|
Junior Member
Join Date: Apr 2008
Posts: 1
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
|
OOPs Question.Please help me. with example.
Can anybody please tell me how to use OOPS concepts in my project named WellsFargo Home Mortgage
Please help me out with this question, beacause I am facing this question in my interviews. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OOPS!!!!!!!! | mercury | DATA STRUCTURES, C, C++, VC ++ | 1 | 17-04-07 06:31 PM |
| What are the OOPS concepts in Java ? | preethisingh | Java Interview / Technical Questions | 1 | 23-01-07 12:37 PM |
| How OOPS concept is achieved in Java | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 12:22 PM |
| use of OOPS concepts | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 12:20 PM |
| eBook in oop's | prav_roy | VB / ASP.NET Technologies | 0 | 20-10-06 02:09 PM |