Give real time examples for polymorphism, encapsulation,
inheritance..
Answer Posted / 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 |
Post New Answer View All Answers
What is data caching?
Do gac'ed assemblies have fulltrust?
What are main return types supported in Web API?
Explain diff. Between friend and protected friend?
What is global.asax file used for?
What is a web api endpoint?
What is rich control in asp.net?
What are the major built-in objects in ASP.NET?
Define the types of configuration files.
What is fulltrust?
Explain asp.net page life cycle?
Can you explain the basic use of dataview?
Is asp net front end or backend?
What is session start?
What is tracing? Where is it used?