Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Give real time examples for polymorphism, encapsulation,
inheritance..

Answers were Sorted based on User's Feedback



Give real time examples for polymorphism, encapsulation, inheritance....

Answer / 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

Give real time examples for polymorphism, encapsulation, inheritance....

Answer / harsh mitha(666)

e.g poly:-making a food;
e.g encapsulation:- A drug(capsule);
e.g inheritance:- son. or you

Is This Answer Correct ?    10 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

Explain the difference between or and orelse?

0 Answers  


What data type does the RangeValidator control support?

3 Answers   Visual Soft,


What is advantage and disadvantage of viewstate

3 Answers  


What are the differnt types of handler in ASP.NET?

0 Answers   Sans Pareil IT Services,


What does the "EnableViewState" property do? Why would I want it on or off?

3 Answers  


what is difference between .net 3.0 and 3.5

3 Answers  


What is the main function of razor in asp.net? : asp.net mvc

1 Answers  


What is autopostback in asp net?

0 Answers  


What are the namespaces used in asp.net mvc? : asp.net mvc

0 Answers  


How can we inherit a static variable?

0 Answers  


What is session state server?

0 Answers  


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

0 Answers   Siebel,


Categories