Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Use of Empty Class  RSS feed

 
hogman hogman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me to understand the below:


In the above code i create an empty class(Config.java) without any declarations

Below I create another class where I refer Config as



How can I get a method[getResourceAsStream(filename)] which i havent declared in Config.java


 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Every class inherits from Object. Check http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html, especially getClass().
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"hogman hogman", please check your private messages for an important administrative matter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!