Search:

Type: Posts; User: Cornix

Search: Search took 0.07 seconds.

  1. Re: Why is there no "package-private interfaces" and "abstract static"?

    I am not trying to solve any problem with abstract static. As I stated in my initial post, this is a theoretical question. I was just wandering why this was not implemented as it seemed like a very...
  2. Re: Why is there no "package-private interfaces" and "abstract static"?

    But the compiler / JVM is not forced to do it this way.
    They could load the class and everything and give you access to everything that is not abstract. This is not magic, this is programming....
  3. Re: Why is there no "package-private interfaces" and "abstract static"?

    But why is that? The good thing about programming is that you can change things later on without any material loss, the designers of java could just change the way static methods work and allow...
  4. Re: Why is there no "package-private interfaces" and "abstract static"?

    1). The compiler can check if you are trying to call an abstract method or not. In the same way the compiler could check if you are calling an abstract static method and if you try it will not...
  5. Re: Why is there no "package-private interfaces" and "abstract static"?

    I think that came out wrong; of course I know that an interface can be declared private; but all of its methods are still public.
    Here is an example of what I mean:


    I have an Engine, and an...
  6. Why is there no "package-private interfaces" and "abstract static"?

    These are very theoretic questions, I know, but nevertheless I am curious as to why this is not possible; what is the reasoning behind this?

    Question 1).
    Why must interfaces be public? Why can I...
Results 1 to 6 of 6