Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

About inheritance

This is a discussion on About inheritance within the Java forums, part of the Software Development category; what is the difference between single inheritance and single level inheritance?...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-17-2007
Junior Member
 
Join Date: Sep 2007
Location: india
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rajimurugan is on a distinguished road
Question About inheritance

what is the difference between single inheritance and single level inheritance?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-17-2007
Junior Member
 
Join Date: Sep 2007
Location: india
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
rajimurugan is on a distinguished road
Re: About inheritance

what is the difference between single inheritance and single level inheritance?
Reply With Quote
  #3 (permalink)  
Old 09-20-2007
Junior Member
 
Join Date: Sep 2007
Location: New Delhi
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
softvijay is on a distinguished road
Re: About inheritance

Quote:
Originally Posted by rajimurugan View Post
what is the difference between single inheritance and single level inheritance?
Single inheritance means, A class can inherit only one class directly, that means a Class can extend only one class in anycase.
(Java support single inheritance not multiple like C++)

Single level inheritance is same as specified above, but java supports mutiple level inheritance

For instance

Class A
{}

class b extends a
{}

class c extends b
{}

over here class c is inherting from both a and b.
Reply With Quote
  #4 (permalink)  
Old 09-20-2007
Contributing Member
 
Join Date: Sep 2006
Location: bangalore, india
Posts: 1,016
Thanks: 0
Thanked 91 Times in 72 Posts
psuresh1982 will become famous soon enough
Re: About inheritance

There is no difference between single and single level inheritance...Both of them same..

----------------------
suresh
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Types of Inheritance scott OOPS 26 08-09-2009 03:01 AM
multiple inheritance in java... psuresh1982 Java 20 07-23-2007 02:33 PM
How to implement inheritance in HBM mapping? Geek_Guest Java 0 07-17-2007 11:29 PM
inheritance sumad C# 4 06-06-2007 01:36 AM
multiple inheritance.... psuresh1982 Java 2 01-22-2007 12:57 AM


All times are GMT -4. The time now is 07:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved