Give real time examples for polymorphism, encapsulation,
inheritance..




Answers were Sorted based on User's Feedback



Give real time examples for polymorphism, encapsulation, inheritance....

Answer / priya pawar

for example a simple project done for inventory control in a
medical shop

inheritance-The properties of one class is derived by
another class
the class which derives the property is called derived class.
The class from which the properties are derived are called
Base class.
ex.The child who derives some behaviors from the parent
ex color,character from parent

polymorphisms-The ability to take more than one forms.
ex.The sum() function can be used to do the following
1.Adds two numbers when integers are passed as parameters
2.Concatenates two strings when strings are passed as
parameters.

Is This Answer Correct ?    46 Yes 11 No

Give real time examples for polymorphism, encapsulation, inheritance....

Answer / harsh mitha(666)

e.g poly:-making a food;
e.g encapsulation:- A drug(capsule);
e.g inheritance:- son. or you

Is This Answer Correct ?    9 Yes 2 No

Post New Answer




More ASP.NET Interview Questions

When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

0 Answers   BirlaSoft,


Describe the difference between inline and code behind - which is best in a loosely coupled solution Tightly coupled - INLINE

2 Answers  


How to deploy the Asp.Net Project ?

3 Answers  


When during the page processing cycle is ViewState available?

1 Answers  


What is role-based security?

1 Answers  






What is the Impprsonation?and what is the importence of that?

3 Answers   eXensys,


Difference between HTML control and Web Server Control?

4 Answers  


Can we throw exception from catch Block?

9 Answers   IBM, Accenture,


What is strong-typing versus weak-typing? Which is preferred? Why?

2 Answers  


what are the oops concepts are used in your project?

1 Answers   Kotak, AppShark, IBM,


What is the difference between session state and session variables ?

6 Answers   Digital GlobalSoft,


how can we maintain security in soted procedure?

1 Answers  






Categories