java.lang.NoSuchMethodException

Discussion in 'General Programming Support' started by alakimibid, Mar 16, 2014.

  1. alakimibid

    alakimibid New Member

    Ratings:
    +0 / 0 / -0
    Hello, i'm recently trying to finish my assignment for programming at university but the discussion boards are too difficult to follow as it consists of "pro"grammers and they use very difficult terminology to understand or to help me solve my problem. ss (2014-03-16 at 03.04.24).png ss (2014-03-16 at 03.04.48).png
     
  2. monoVertex

    monoVertex I'm back!

    Ratings:
    +459 / 0 / -0
    Hello, alakimibid and welcome to the TH forums!

    The constructor method (Dot()) should not return anything. Remove the "void" keyword.

    This is because constructors return the instance of the Object itself and that's fixed. It means it can't return "void" or anything else, the return value is already known.
     
  3. tom_mai78101

    tom_mai78101 The Helper Connoisseur / Ex-MineCraft Host Staff Member

    Ratings:
    +984 / 4 / -1
    TL;DR:

    Code:
    public class Foo {
        public Foo(){
            //...Default constructor
        }
    }
     

Share This Page