Jump to content

Can anyone help

- - - - -

  • Please log in to reply
1 reply to this topic

#1
lina

lina

    Learning Programmer

  • Members
  • PipPipPip
  • 34 posts
What are some potential efficiency disadvantages of having very deep inheritance trees; that is, a large set of classes (A, B, C, etc.) such that B extends A, C extends B, D extends, C, etc.?
What are some potential efficiency disadvantages of having very shallow inheritance trees; that is, a large set of classes (A, B, C, etc.) such that all of these classes extend a single class, Z?


Write a simple Java program, called quine, that outputs its source code when it is run. Show the code and results. Hint: This can be done with a class String and a System.out.printf() call.

#2
eafkuor

eafkuor

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 218 posts
So you just copypasted your homework here =)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users