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 ?    10 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

Name the validation control available in asp.net ?

1 Answers  


What is ISAPI?

2 Answers   IBM,


How do u deploy your asp.net application?

0 Answers  


What do you mean by View State and what is its role?

0 Answers   Wipro,


how can i inharit multiple classes?

3 Answers  


What is the use of SmartNavigation property?

4 Answers  


What is inheritance and an how it be used, example with an example?

0 Answers   Siebel,


Explain parts of assembly?

0 Answers  


What is the extension of master page in asp.net?

0 Answers  


Can I tap into other windows livetm services?

0 Answers  


repeater and gridview diff? Why is repeater fast than gridview?

3 Answers   TCS,


can i call the java script to code behind file?if yes how?

4 Answers   Wipro,


Categories