How to make a constructor in java


In this link (Classes: Constructors) i cant figure it out how to make a constructor in java.
Plz anybody help…


but there is an example with constructor in the information section:

class Car {

    //The class constructor for the Car class
    public Car() {


there is even a comment, telling what the constructor is.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.