Give real time examples for polymorphism, encapsulation,

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

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

Explain the working of passport authentication.

0 Answers  

What is the displayafter property in updateprogress control?

0 Answers  

You ve defined one page_load event in aspx page and same page_load event in code behind how will prog run?

6 Answers   TCS,

Explain the scenario where we go for inpro and outpro session?

3 Answers  

Differnce between Control an View State

1 Answers   Proteans,

What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.

0 Answers   Siebel,

Can we Run the Application without Build

3 Answers   Emphasis,

How would you create a permanent cookie?

0 Answers  

What is Web Application?

2 Answers   HCL,

how to get the vb6.0 COM Component in to the .Net application?

3 Answers   iSoft,

What are the two properties that are common in every validation control?

4 Answers   Siebel,

what is the difference b/w server controls and html server controls in .net?

2 Answers   iGate, Profiniti Systems,