GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Concepts  >  OOPS

 Print  |  
Question:  Explain the Inheritance Principle

Answer: Inheritance is the process by which one object acquires the properties of another object.


December 12, 2005 04:04:06 #3
 Rahul Dhadphale   Member Since: Visitor    Total Comments: N/A 

RE: Inheritence concept
 
Inheritance is the process of basing one class on another. In this process, a base class provides methods, properties, and other members to a derived class. The advantage of inheritance is that you can write and maintain code once it is in the base class and reuse it over and over in the derived classes
     

 

Back To Question