• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inheritance ?

 
Sirish Kumar Gongal Reddy
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
1) Can you tell me some dis advatages of java ?

2) Can you tell me some dis advantages of Inheritance ?
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Can you tell me some dis advatages of java ?

2) Can you tell me some dis advantages of Inheritance ?


http://faq.javaranch.com/view?SearchFirst
 
Patrick van Zandbeek
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) it's also the name of geographical location which can become very confusing when you try to compile your holiday destination.

2) You have to pay taxes when you inherit something.

3) Read the whole thing Steve mentioned under The whole asking proper questions thingie That way all the nice and helpful people on here can help you out should you need it.

ok, so there was no question number 3, but perhaps you could check those links anyway. the JavaRanch Beginner's FAQ is great too by the way.
 
Jack Wiesenthaler
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by G Sirish Reddy:

2) Can you tell me some dis advantages of Inheritance ?


I agree with Patrick, taxes are a big disadvantage of Inheritance

 
Sirish Kumar Gongal Reddy
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Patrick,
First of all i wanna know whether your an Java Professional or not.
I was asking about the Java language not the geographical location Java.
If u know the concerned answer about Java Inheritance please let me know

Regards,
Sirish Reddy
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'G' - the guys here are trying to encourage you to think a little bit first. Before you know the disadvantages of something, you need to know a little bit about it, right?
1) What are some features of Java? What were some of the design goals?
2) What are some features of inheritance? What does it try to achieve? Are there other ways of doing the same or a similar thing?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question is lacking context. Like asking "what are the disadvantages of a screw driver?" Compared to what? In what situation?
[ August 31, 2005: Message edited by: Ilja Preuss ]
 
Sirish Kumar Gongal Reddy
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ilja Preuss ,
Thanks for your suggestion first i will review some sfuff on dis advantages of java(i know all advantages of java) and then i will put some Question.
iam asking you in language design perspective.see each language has it's own set of advantages and disadvatages right ? here for java what are the disadvantages.Hope that you got my Question.
Thanking you,
Regards,
G Sirish Reddy.,
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
G Sirish Reddy, may I ask you what is the disadvantage of C++ ?
 
Sirish Kumar Gongal Reddy
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,
Sure let me explain,
1)Extensive use of operator overloading, function overloading and virtual functions can very quickly make C++ totally unreadable,
2)C++ executables are big ( 500 kilobytes on HP-UX) compared to OIC executables ( 150 kilobytes on HP-UX).
3)Memory Managemt is alos big problme.
4)Platform Dependent.
Hope that some how clear.

Regards,
G Sirish Reddy.,
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) Depends on developer, every language can be totaly unreadable
2) I think this is not a real problem nowadays
3) Use smart pointers
4) Could be big advantage if want killing efective code
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic