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

What are sessions used for?

0 Answers  


Why is it preferred to not use finalize for clean up?

0 Answers  


I have to send data throug querystring from one page to another. But it should not be displayed in URL. How it is possible?

6 Answers   EMR, Wipro,


What is http protocol and how it works?

0 Answers  


What is the use of web.config file?

0 Answers  


What is view state and use of it ?

1 Answers  


What are early binding and late binding.

0 Answers  


What is smpte vc-1?

0 Answers  


Explain about ASP.NET?

0 Answers  


Explain how is the asp.net mvc architecture different from others? : asp.net mvc

0 Answers  


Explain the functionality of "EnableViewState" ? What happens if you want it on or off?

1 Answers   Siebel,


What are assemblies and namespaces and explain the difference between them ?

0 Answers  


Categories