N
N. Demos
In the ASP.Net (VB.Net) book I'm reading (learning from) the syntax used
for class inheritance uses a colon between the class declaration and the
inheritance statement.
EX:
Public Class MyClassName : Inherits ParentClassName
Elsewhere, I have seen the following syntax without the colon operator.
Public Class MyClassName
Inherits ParentClassName
I've had no problems (that I know of) with either sytax style when
compling and running code.
Which is the correct syntax, or are both correct? Thanks for your time.
Regards,
N. Demos
for class inheritance uses a colon between the class declaration and the
inheritance statement.
EX:
Public Class MyClassName : Inherits ParentClassName
Elsewhere, I have seen the following syntax without the colon operator.
Public Class MyClassName
Inherits ParentClassName
I've had no problems (that I know of) with either sytax style when
compling and running code.
Which is the correct syntax, or are both correct? Thanks for your time.
Regards,
N. Demos