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

Can you change a Master Page dynamically at runtime?

583


how to debug web services on consumer side?

582


What is the purpose of using MVC programming pattern in ASP.NET?

560


What are the difference between overriding and overloading?

503


What is jade template engine?

577






Which is better union or union all?

564


where can i gather the materials for MCP certification

4493


What is the file extension of web service?

558


What is the exact purpose of http handlers?

570


What is distributed system in asp.net?

545


What are web beacons used for?

550


Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

553


What are the events that happen when a client requests an asp.net page from iis server?

488


Why asp.net is used?

559


What are the Difference between asp.net and asp ?

573