What is inheritance in opp and how we can use inheritance in oop
214 Views|Posted 2013-06-05 14:04:35
Asked by Adnan Akram
The question is closed for answering
1 Answer

Answered by
2013-06-05 15:33:48
Inheritance is prinicple of OOP.Inheritance is ability of derive class to inherit attributes and method of base class.It allows classes to inherit commonly used state and behavior from other classes(parent class).
for example User is parent class of College system then classes student,employee are d
Taking an Exam? Selecting a College?
Get authentic answers from experts, students and alumni that you won't find anywhere else.
On Shiksha, get access to
66K
Colleges
|
1.2K
Exams
|
6.9L
Reviews
|
1.8M
Answers
Didn't find the answer you were looking for?
Search from Shiksha's 1 lakh+ Topics
or
Ask Current Students, Alumni & our Experts
Have a question related to your career & education?
or
See what others like you are asking & answering