Abstraction is a crucial concept in the world of software…