How to call a base class constructor or any function in Godot 4?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By imon

Godot 3 base init call was like this:

func _init(gameplay: GamePlay= null).(gameplay) -> void:

but in godot in Godot 4 this gives error.
Also ._init() does not work:

func _init(gameplay: GamePlay= null)-> void:
	._init(gameplay) #error in Godot 4 not in Godot 3
:bust_in_silhouette: Reply From: Aeris130


func _init(gameplay: GamePlay)-> void:
  super(gameplay) # Base class constructor

Other functions

func my_function(n: int) -> void:
  super.my_function(n) # Base class my_function()