Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Confused about method getPathMatcher of class FileSystem  RSS feed

 
Ranch Hand
Posts: 429
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am very confused about:


because it is abstract.

I think that in the documentation they don't write the word abstract because you can write FileSystem.getPathMatcher(String x).

What is the explication?

Thanks,

Dana
 
author & internet detective
Marshal
Posts: 38151
617
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dana,
It's abstract because the FileSystem class itself is abstract. That just means that someone down the chain needs to implement it. As an example, UnixFileSystem provides an implementation. As does any other class you get returned and use in a FileSystem variable.
 
Dana Ucaed
Ranch Hand
Posts: 429
6
Netbeans IDE Oracle Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jeanne.

I needed one explication and you gave me.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!