In a medium saucepan, whisk together sugar, flour, and salt.
In a separate bowl, whisk together egg yolks and milk.
Gradually whisk the egg mixture into the saucepan with sugar mixture.
Cook over medium heat, stirring constantly, until the mixture thickens.
Remove from heat and stir in vanilla extract.
Let the custard cool slightly.
In a trifle dish or serving bowl, assemble layers of vanilla wafers, sliced bananas, and custard.
Repeat the layers until all ingredients are used, ending with a layer of custard on top.
Cover and chill in the refrigerator for a few hours or overnight.
Before serving, whip heavy cream with powdered sugar until stiff peaks form.
Top the chilled pudding with whipped cream.
Serve and enjoy!
