Basic Level 3

Which of the following will be a safer approach in design?