RajTilak Sivaluri wrote:
Now my compiler is not producing any error but my doubt is if this is right my class is actually a subclass to class ArrayList .
which means it is no more a super class
RajTilak Sivaluri wrote:
And the other doubt is actually importing a class do mean that we are making our class a subclass to the imported class . Do post your comments
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Abimaran Kugathasan wrote:
RajTilak Sivaluri wrote:
Now my compiler is not producing any error but my doubt is if this is right my class is actually a subclass to class ArrayList .
which means it is no more a super class
I don't get this sentence. If another class extends your class, then your class will be a super class to that extending class.
RajTilak Sivaluri wrote:
And the other doubt is actually importing a class do mean that we are making our class a subclass to the imported class . Do post your comments
Nope, import guides the compiler where to check the class which you've imported.
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
RajTilak Sivaluri wrote:
What i was exactly saying was I created a class Myclass right !! but instead of using the import statement i extended the ArrayList class which i intended to use hence why why shouldn't i say that Myclass is a subclass to class ArrayList . Because i have done all the things to make it a subclass
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
RajTilak Sivaluri wrote:...@Abhiram : next time when ...
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Thank you for noticing. It can cause a lot of annoyance when you copy somebody's name wrongly.mohamed sanaullah wrote: . . . You got his name wrong again