In a large skillet or saucepan, melt the butter over medium heat.
Add the corn kernels to the pan and sauté them for about 5 minutes, stirring occasionally, until they become tender.
Sprinkle the flour over the corn and stir well to coat the kernels evenly. Cook for another minute to cook out the raw flour taste.
Slowly pour in the heavy cream while stirring continuously to combine it with the corn and flour mixture. Stir until the mixture thickens slightly, usually around 3-4 minutes.
Reduce the heat to low and let the corn simmer for 5-10 minutes, stirring occasionally until it reaches your desired consistency. If you prefer a creamier texture, you can use a potato masher or the back of a spoon to mash some of the corn kernels gently.
Season the creamed corn with salt, pepper, and sugar (if desired), adjusting the amounts to taste.
Once the creamed corn is ready, remove it from the heat and transfer it to a serving dish.
Garnish with fresh herbs like parsley or chives, if desired, for added freshness and presentation.