Static Constructor, Private Constructor, Interface, Abstract
In
case of Normal class
Shared/static
Constructors
·
If we
define constructor as shared then once it can be called in their life cycle.
·
We cannot define a parameterized constructor of
shared constructors.
·
Access Modifier cannot be used in Shared
Constructors.
·
Shared Constructors/Methods only initialized shared
variables.
In case of Normal class
Private
Constructors
·
We cannot
create object of Class which has a private constructor.
·
We cannot
inherit class which has private constructor.
·
For using
Class which has private constructor then we define other shared method/function
In
class
Interface
·
All
Methods of Interface to be implemented in class if class is normal.
·
All
Methods of Interface need not to be implemented in MustInherited(Abstract)
In
that case we have to use MustOverride key word before the unimplemented
methods/Functions.
MustInherit/Abstract
·
All unimplemented Methods
(MustOverrides) of MustInherit(Abastract) class must be implemented in the
derived class.
·
All Unimplemented methods of the
MustInherit class required MustOverrieds keyword.
No comments:
Post a Comment