A function can have both the const and non-const version in the

a-function-can-have-both-the-const-and-non-const-version-in-the

A function can have both the const and non-const version in the same program.

A. True

B. False

I got this question in an interview.

I want to ask this question from Constant Member Functions topic in portion Member Functions & its Types of Object Oriented Programming

Correct option is A. True

Explanation: The functions in a program can be made both const and non-const. This feature is made available to make programming more flexible. This ensures the security too as we can call const function whenever required.