06.07.2017 15:34 "Johannes Schlüter" napisał(a):
>
> On Do, 2017-07-06 at 13:11 +0500, Khawer . wrote:
> > Partial Classes
> >
> > If we are using same class for different purposes we can extend it,
> > and add new properties and methods. But we will also have to use new
> > class name, when we cr
On Do, 2017-07-06 at 13:11 +0500, Khawer . wrote:
> Partial Classes
>
> If we are using same class for different purposes we can extend it,
> and add new properties and methods. But we will also have to use new
> class name, when we create objects. C# provides a better concept
> "Partial Classes".
Partial Classes
If we are using same class for different purposes we can extend it, and add
new properties and methods. But we will also have to use new class name,
when we create objects. C# provides a better concept "Partial Classes". Why
not to also implement it in PHP?
Example:
Partial Class