Thursday, February 22, 2007

Why is not recommended to have instance variables in Interface?

By Default, All data members and methods in an Interface are public. Having public variables in a class that will be implementing it will be violation of the Encapsulation principal


SOURCE: www.referjava.com

No comments: