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 difference Between Authentication and authorization?
Why select Web API?
What is the full meaning of asp.net?
What symbol specifies the beginning of a query string?
Who creates jsessionid?
Explain Optimization technique description?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
Explain about the Class view window?
How does session state work in asp.net?
Can the dictionary object be created in client?s scope ?
Who can consume WebAPI?
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
List the events in page life cycle.
What is asp short for?
Can we have multiple master pages in asp net?