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


Please Help Members By Posting Answers For Below Questions

Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?

777


what are the ihttphandler and ihttphandlerfactory interfaces ?

723


Explain security types in asp.net?

784


How do we access view state value of this page in the next page?

831


What is difference between inproc and outproc?

892


What symbol would you use to denote, the start of a code block in aspx views?

744


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

752


What is Model-View-View Model?

781


What is the significance of proxy user?

809


What is asp.net introduction?

742


When using the Pager object, inorder to know which page to go, which property you have to set to grid?

759


What is the part of url?

721


List the asp.net validation controls?

702


Why asp.net mvc is better than asp.net? : Asp.Net MVC

695


What is http pipeline in asp.net?

715