Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 31-10-07, 01:13 PM   #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 radhika743 is on a distinguished road
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?
radhika743 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31-10-07, 07:03 PM   #2 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
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 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute
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.
sk_kireeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-11-07, 11:00 AM   #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 radhika743 is on a distinguished road
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.
radhika743 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-04-08, 07:05 AM   #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 manya shankar is on a distinguished road
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.
manya shankar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT +6.5. The time now is 03:00 AM.





Search Engine Optimization by vBSEO 3.1.0