error CS0115: 'Launcher.OnJoinedLobby()': no suitable method found to override

Hi guys I am making a multiplayer game but I found an error saying error CS0115: ‘Launcher.OnJoinedLobby()’: no suitable method found to override

My code:
void Start()
{
Debug.Log(“Connecting”);
PhotonNetwork.ConnectUsingSettings();
}

// Update is called once per frame
void Update()
{

}

public override void OnConnectedToMaster()
{
    Debug.Log("Connnectd to Master");
    PhotonNetwork.JoinLobby();
}

public override void OnJoinedLobby()
{
    Debug.Log("joined");
}

Make sure that your class extends MonoBehaviourPunCallbacks

Example:

public class Launcher : MonoBehaviourPunCallbacks {
    // code
}