I various languages there are various syntax as below to restrict the inheritance of the class-

1. Java - It uses the final keyword.
Syntax -

public final class fdetails{

}

2. C# - It uses the sealed keyword.
Syntax -
public sealed class fdetails{

}

3.. VB.net - It uses the NotInheritable keyword.
Syntax -
public notinheritable class fdetails

end class