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 the sequence in which ASP.NET events are processed?
What does aspcompat="true" mean?
What are strong names?
What are the various types of validation controls provided by asp.net?
Where is asp.net view state stored?
How we implement web farm and web garden concept in asp.net?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
How to use ipostback?
What is the difference between equals() and == in c#?
How many web config files can be created for an application?
What is session in asp.net?
What are the asp.net list controls and difference between them?
What is AutoPostback?
What is view state and how it works in asp net?
What does asp.net stand for?