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.
1 reply to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









