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

What is the sequence in which ASP.NET events are processed?

462


What does aspcompat="true" mean?

541


What are strong names?

577


What are the various types of validation controls provided by asp.net?

530


Where is asp.net view state stored?

501






How we implement web farm and web garden concept in asp.net?

533


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?

544


How to use ipostback?

582


What is the difference between equals() and == in c#?

556


How many web config files can be created for an application?

439


What is session in asp.net?

514


What are the asp.net list controls and difference between them?

501


What is AutoPostback?

585


What is view state and how it works in asp net?

539


What does asp.net stand for?

528