I created an interface called IMenu:
interface IMenu {
name: string;
url: string;
}
Then, I implemented this interface in a class named Menu:
class Menu implements IMenu {
public name;
public url;
}
Since the properties in the interface are always public, is it feasible to change them to protected or private in the class that implements the interface?