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

Where sessions are stored in asp.net?

0 Answers  


what is page life cycle state management postback cross page postback types of feilds in gridview gridview events their life cycle cte in sql diff truncate and delete paging concepts in gridview diff bet gridview datalist and repeater what new operations in sql 2005 compared to earlier you get

1 Answers   e4e,


Why and where this web.config file is used?

0 Answers   Amazon,


Explain what a diffgram is, and a good use for one?

2 Answers  


What is the web.config file in asp?

0 Answers  






Which is faster viewdata or viewbag?

0 Answers  


What is Virtual path in ASP.Net

2 Answers   Proteans,


How is a session stored and maintained in asp.net?

0 Answers  


What are the best practices to follow to secure connection strings in an ASP.NET web application?

0 Answers   MCN Solutions,


Write some code using interfaces, virtual methods, and an abstract class`

0 Answers  


Name the two properties are on every validation control?

0 Answers  


what is the trace in ASP.NET

4 Answers  


Categories