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 httphandlers and httpmodules.and their differences.

1 Answers   Siemens,


witch is the best insistute in sharpoint course.what abt future of share point course.

2 Answers  


Explain the use of duration attribute of @outputcache page directive.

0 Answers  


What is the difference between <%#%> and <%=%>?

5 Answers   IBS,


What is the base class of .NET?

6 Answers  


True or False: A Web service can only be written in .NET?

5 Answers  


Explain the function of new view engine in asp.net? : asp.net mvc

0 Answers  


Hi please tell me what is ISNOTPOSTBACK,POSTBACK,AUTOPOSTBACK and also the extensions of aspx,asmx,ascx its urgent plz reply me soon....

6 Answers   Logica CMG,


Any alternative to avoid name collisions other then Namespaces?

1 Answers  


Give me one example of Web API Routing?

0 Answers  


Master Page

1 Answers   Syntel,


What is versioning in .NET?

1 Answers   Syntax Softtech, Wipro,


Categories