Why cannot you specify the accessibility modifier for methods inside the interface?

Why cannot you specify the accessibility modifier for methods inside the interface?

Because They all must be public. Therefore, to prevent you from getting the false impression that you have any freedom of choice, you are not allowed to specify any accessibility, it is public by default. 

By:kamal
Date:2011-10-10 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Links

C interview questions and answers for experienced and fresher