Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Re: what is the use of interfaces and abstract classes?

    Both shape and circle are data types.
    And so are Main and HelloWorld data types.
  2. Re: what is the use of interfaces and abstract classes?

    What's the point?

    Where is the method that takes an argument of type shape?

    void SomeMethod(shape aShape) {
    }

    You could NOT pass an object of the circle class from your second code...
  3. Re: what is the use of interfaces and abstract classes?

    Interfaces are a way to give a data type to an object. Java is strict on data typing compared to c.
    They allow the compiler to verify that a class object has the method(s) required for that data...
Results 1 to 3 of 3