Can traits have properties & methods with private & protected visibility? Can traits have constructor, destructor & class-constants?
问题 I've never seen a single trait where properties and methods are private or protected. Every time I worked with traits I observed that all the properties and methods declared into any trait are always public only. Can traits have properties and methods with private and protected visibility too? If yes, how to access them inside a class/inside some other trait? If no, why? Can traits have constructor and destructor defined/declared within them? If yes, how to access them inside a class? If no,