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  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 168 of 255    Print  
What do you mean by inheritance?

  
Total Answers and Comments: 1 Last Update: January 25, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 25, 2006 07:26:16   #1  
samiksc Member Since: October 2005   Contribution: 233    

RE: What do you mean by inheritance?

Inheritance is using a generalized class to derive a more specific functionality without re-writing the existing basic functionality code.

A base class or parent class contains generalized functions. A derived class reuses the base class functions and extends the class by providing new functions suited for its design logic. It also may replace some of base class functions to suit its needs.

For example a shape class may be a parent class and a class triangle derives from it.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Whenever u want to derieve a class having multiple ancestors or base calsses u have use Multiple InheritanceIt can be done as followsclass A{- - - };class B{---};class C:public A,public B{---}; ...

Latest Answer : The process of creating new classes, called derived classes, from existing classes, called base classes. The derived classes inherit all the capabilities of the base class and also can add new features of its own. ...

Latest Answer : Inheritance is using a generalized class to derive a more specific functionality without re-writing the existing basic functionality code.A base class or parent class contains generalized functions. A derived class reuses the base class functions and ...

Latest Answer : Multiple inheritance refers to a class being derived from two or more classes.Multilevel inheritance refers to a class inheriting from a parent class which is itself derived from another class.Multilevel inheritance is supported by all OOPs languages. ...

Latest Answer : Yes, In C++ we can derive a class C from B which is derived from A -- multilevel inheritance.In C++ we can derive a class D from two base classes A and B -- multiple inheritance. This may cause a problem in case A and B are derived from a single base ...

Latest Answer : Inheritance offers the following advantages --Developement model closer to real life object model with hierarchical relationshipsReusability -- facility to use public methods of base class without rewriting the sameExtensibility -- extending the base ...

Latest Answer : Java supports four types of inheritance1) Single Inheritance2) Multi Level Inheritance3) Hierarchical Inheritance4) Hybrid Inheritance ...


 Sponsored Links

 
Related Articles

Microsoft AJAX Library - Inheritance using Prototypes

Inheritance using Prototypes Once again prototyping can help us implement an OOP feature in a more elegant way than when using closures Prototype based inheritance makes use of the behavior of JavaScript prototypes When accessing a member of a function that member will be looked for in the function
 

Microsoft AJAX Library - Inheritance using Closures

Inheritance using Closures and Prototypes There are two significant techniques for implementing the OOP concept of inheritance with JavaScript code The first technique uses closures and the other technique makes use of a feature of the language named prototyping Early implementations of the Microsof
 

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

C++ Inheritance

C Inheritance Introduction What is Inheritance Inheritance is the process by which new classes called derived classes are created from existing classes called base classes The derived classes have all the features of the base class and the programmer can choose to add new features specific to the ne
 

The Importance of Inheritance Within OOP

The Importance of Inheritance Within OOP In an object oriented programming language that is well designed a function should be able to have functions that reside inside it In addition to this other functions should be processed as input and output as well When an OOP language uses these features it
 

The Inheritance Concept In OOPs

The Inheritance Concept In OOPs In object oriented programming objects will be characterised by classes It is possible to learn a lot about an object based on the class it belongs to Even if you are not familiar with the name Maybach If I told you it is a car you would immediately know that it has f
 

Understanding The Message Concept In OOPs

Understanding The Message Concept In OOPs To understand object oriented programming you will need to become familiar with messages As the name implies a message is a process in which software objects will communicate with one another Because of this having one object is not enough mosgoogle An objec
 

Basic concepts of OOPS and Structure of C++ program

Basic concepts of OOPS and Structure of C program In this tutorial you will learn about Objects Classes Inheritance Data Abstraction Data Encapsulation Polymorphism Overloading Reusability Before starting to learn C it is essential that one must have a basic knowledge of the concepts of Object orie
 

Inheritance in C#

Inheritance in C This article discusses Inheritance concepts in the context of C Before we understand Inheritance in C it is important to understand the key players involved viz Objects Classes and Structs mosgoogle Classes and Structs are blue prints’ or templates from which we instant
 

Implementing Inheritance

Introduction and Implementing Inheritance The usefulness of inheritance is depnding on the choice of its usage You can use inheritance if the derived class is a kind of base class but not has a relationship with the base class Such a situation empowers you to reuse the code from the base class It is
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape