C++ program Constructor Destructor program to print the hollow square or rectangle star pattern

Write a C++ program to print the hollow square or rectangle star pattern by using the constructor and destructor.

C++ program to print the hollow square or rectangle star pattern