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
Explain the difference between inline and code behind - which is best in?
Define authentication and authorization.
What is server transfer?
Can user control be stored in library?
What is query string in asp.net?
Explain the difference between asp.net mvc and asp.net webforms
What is ascx?
How are sessions stored?
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
How is a session stored and maintained in asp.net?
Is asp.net 64-bit enabled? How?
What are query strings used for?
What does uri mean?
What is recordset asp?
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?