View Single Post
Old 01-30-2019, 11:57 AM   #2
frankone
Registered User
 
Join Date: Jan 2016
Location: Romania
Posts: 28
Hi there,
Traits are similar to classes, but they cannot be instantiated, therefore they do not contain a constructor. You can group a set of methods in a trait, that will be reused with future classes you will have.
However, i'm sure you are familiar now with them, i see the post is 6mo old.
__________________
webdesign | web development | support and maintenance

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
frankone is offline   Reply With Quote