How to use SetMaterial()?

Still trying to find a solution to this. I need to clarify how to declare a material

Material : material = DefaultMaterial