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
Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?
what are the ihttphandler and ihttphandlerfactory interfaces ?
Explain security types in asp.net?
How do we access view state value of this page in the next page?
What is difference between inproc and outproc?
What symbol would you use to denote, the start of a code block in aspx views?
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
What is Model-View-View Model?
What is the significance of proxy user?
What is asp.net introduction?
When using the Pager object, inorder to know which page to go, which property you have to set to grid?
What is the part of url?
List the asp.net validation controls?
Why asp.net mvc is better than asp.net? : Asp.Net MVC
What is http pipeline in asp.net?