Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need a project which has used oops concept.I was asked questions in interview:

1.where you have used abstraction in your project.
2.why we require runtime polymorphism.
3.what we can do with abstract class that we can't do with interfaces.
4. Without oops concept ,how we were working on the projects before.

Please help me ....
Posted
Comments
ridoy 24-Nov-12 0:58am    
Google will answer you better..
Richard MacCutchan 24-Nov-12 5:07am    
There are lots of samples in the CodeProject Articles section.

1 solution

The answers in brief:

1) Most of them.
2) Because without it we can't override methods.
3) Can can provide working methods and properties.
4) Personally, with very long and complex function names...

And I do realize that these answers aren't a lot of help to you, unless you already understand the answers, and that any interviewer is going to want you to say a heck of a lot more than this.

We can't get you though an interview. These four questions are very unlikely to come up in an interview again, unless you wear a false moustache and apply for the same job under a different name. If you do not know the answers to these questions yourself, then you need to go back to the basics of C# and learn how it works properly - because next time the questions will be on very different parts of the OOPS concept.

Sorry, but that is the way the world works.
 
Share this answer
 
Comments
surendra00 24-Nov-12 1:54am    
that's why , i am asking about sample project through which i can easily understand the implementation of oops concept.....Please sir provide me such source code...please please please
OriginalGriff 24-Nov-12 2:33am    
A source project will not help you understand treh basic concepts - they are not clearly labelled as "Abstraction", "runtime polymorphism" and so on. Real projects assume you know this stuff, and do not use the terms in the code!
Read your course notes.
Try to understand the concepts, so you can answer the questions in future - looking at code will not help you with that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900