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
Can you change a Master Page dynamically at runtime?
how to debug web services on consumer side?
What is the purpose of using MVC programming pattern in ASP.NET?
What are the difference between overriding and overloading?
What is jade template engine?
Which is better union or union all?
where can i gather the materials for MCP certification
What is the file extension of web service?
What is the exact purpose of http handlers?
What is distributed system in asp.net?
What are web beacons used for?
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?
What are the events that happen when a client requests an asp.net page from iis server?
Why asp.net is used?
What are the Difference between asp.net and asp ?