Explain inheritance?

Answer Posted / hrpynux@gmail.com

Inheritance is a mechanism in which one class acquires the property of another class. For example, a child inherits the traits of his/her parents. With inheritance, we can reuse the fields and methods of the existing class. Hence, inheritance facilitates Reusability and is an important concept of OOPs.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is nsmanagedobjectmodel?

588


What are moments and collections?

578


How many versions of ios are there?

568


Suppose I get a “blog returned invalid data” error message. What do I do?

551


What is the difference between android and ios?

760


How to install an iphone application for testing?

601


What is autorealease pool?

701


What is mapping model?

569


How do I get rid of app errors on iphone?

558


How to switch off predictive text?

633


What is nslayoutanchor?

589


Different types of persistent stores? Which all types can we have on ios?

587


What is synthesize in ios?

580


What is dependency injection in ios?

638


Explain me what is fast enumeration?

615