I heard that inheritance concepts can be achieved by anonymous class(without using extends and implements keyword). Anonymous class will not have the class name. How could we inherit some of the methods or variables of the anonymous class from the other class.
How could we inherit some of the methods or variables of the anonymous class from the other class.
Methods, etc. are inherited the same way as with non-anonymous classes. Ex:
Joined: Jul 11, 2005
Hi, Thanks for the reply. However, It seems to be confusing. Do you know any online tutorials for anonymous class for beginners other than Sun's tutorial.
I am having doubt on ur pgm:
Usually, in thread, we will create the thread object and by calling the start(), the run method will invoke automatically. And also we have to implement the Runnable interface or extends the Thread class for Thread. The code I can't understand were marked in Bold. If u don't mind can u pls explain me clearly, as if i were a beginner.