New library and error: expected unqualified-id before '.' token

hi

i’m try to make a library i have read Library Tutorial
and always get an error: expected unqualified-id before ‘.’ token
i have remove every thing from file to find problem and now i have

ADX.h

#ifndef ADX_h
#define ADX_h

#include "Arduino.h"

class ADX
{
public:
	void ADXInit();
	
};

#endif

ADX.cpp

#include <ADX.h>
#include <Arduino.h>





 void ADX::ADXInit ()
{
  //Wire.begin();                


}

and when try use ADX.ADXInit();

i get an error

what can be wrong ??

What is the return type of your function?

it's dont return any thing

So, the return type is "void", just as your .h promises.

Shouldn't you be creating an instance of the class first and calling ADXInit() with that instance?

i have add "void" but it's still error

i have read Turtorial again and it's look the same as my code

file.h

#ifndef Morse_h
#define Morse_h

#include "Arduino.h"

class Morse
{
  public:
    Morse(int pin);
    void dot();
    void dash();
  private:
    int _pin;
};

#endif

file.cpp

#include "Arduino.h"
#include "Morse.h"

Morse::Morse(int pin)
{
  pinMode(pin, OUTPUT);
  _pin = pin;
}

void Morse::dot()
{
  digitalWrite(_pin, HIGH);
  delay(250);
  digitalWrite(_pin, LOW);
  delay(250);  
}

void Morse::dash()
{
  digitalWrite(_pin, HIGH);
  delay(1000);
  digitalWrite(_pin, LOW);
  delay(250);
}

when i make library exactly like in tutorial its work, but if i change verbal name (dot -> dott) i get this error

The issue is ALWAYS in the code you don't post.

You're showing us your library files but the error is in your sketch. As Delta_G has already pointed out, you are trying to treat ADX like a variable when it's actually a class.

You need to make an incidence of that class like so

ADX myADX;

setup()
 {
 myADX.ADXInit();

//etc..