Q. -------are used to declare methods that can be used in multiple classes. Traits can havemethods and abstract methods that can be used in multiple classes.Sol: (Solved)

1. static

2. self

3. traits

4. single inheritance

  • c. traits
Subscribe Now

Get All Updates & News