Click here to Skip to main content
16,006,065 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Size? Boolean vs Byte Pin
Dave Kreskowiak26-Sep-05 12:28
mveDave Kreskowiak26-Sep-05 12:28 
AnswerRe: Size? Boolean vs Byte Pin
jo0ls26-Sep-05 16:06
jo0ls26-Sep-05 16:06 
GeneralRe: Size? Boolean vs Byte Pin
watagal27-Sep-05 3:07
watagal27-Sep-05 3:07 
GeneralRe: Size? Boolean vs Byte Pin
Dave Kreskowiak27-Sep-05 11:55
mveDave Kreskowiak27-Sep-05 11:55 
QuestionOverriding Methods Question Pin
watagal26-Sep-05 8:14
watagal26-Sep-05 8:14 
AnswerRe: Overriding Methods Question Pin
Dave Kreskowiak26-Sep-05 9:09
mveDave Kreskowiak26-Sep-05 9:09 
GeneralRe: Overriding Methods Question Pin
watagal26-Sep-05 11:20
watagal26-Sep-05 11:20 
GeneralRe: Overriding Methods Question Pin
watagal26-Sep-05 11:51
watagal26-Sep-05 11:51 
Dave Kreskowiak wrote:
Public Sub New(ByVal x As Decimal, ByVal y As Decimal, ByVal z As Decimal)
    'MyBase.New(x, y)                 ' This line isn't required because you're setting all
                                      ' three values in this constructor.  Anything you do in
                                      ' in the POINT2 constructor would just be overwritten
                                      ' by what you have in this one.
    Me.X = x                          ' Again, go through the Properties!
    Me.Y = y
    Me.Z = z
End Sub ' Constructor

Dave,

As soon as I comment out the 'Mybase.New()' statement in POINT3 class, VS2005 complains that it should be there.

This is where my code stands (w/o VS complaints):

Public Sub New(ByVal x As Double, ByVal y As Double, ByVal z As Double)
    MyBase.New(x, y)
    Me.Z = z
End Sub                             ' Constructor

Is this ok?

Thanks,
Karen

Nooobie to OOP and VB.Net 2005
GeneralRe: Overriding Methods Question Pin
Dave Kreskowiak26-Sep-05 12:00
mveDave Kreskowiak26-Sep-05 12:00 
QuestionRe: Overriding Methods Question Pin
shoaibnawaz26-Sep-05 12:01
shoaibnawaz26-Sep-05 12:01 
AnswerRe: Overriding Methods Question Pin
Dave Kreskowiak26-Sep-05 12:33
mveDave Kreskowiak26-Sep-05 12:33 
Questionhow to access datagrid values in textbox using properties Pin
ashima1426-Sep-05 8:13
ashima1426-Sep-05 8:13 
QuestionTransfering data from excel to access Pin
LAYEEQ AHMED KHAN26-Sep-05 7:59
LAYEEQ AHMED KHAN26-Sep-05 7:59 
QuestionFind RichTextBox BackColor in VB.NET Pin
lupus canus26-Sep-05 7:14
lupus canus26-Sep-05 7:14 
QuestionHow to Display SSN with dashes Pin
LedouxMJ26-Sep-05 5:58
LedouxMJ26-Sep-05 5:58 
AnswerRe: How to Display SSN with dashes Pin
watagal26-Sep-05 11:16
watagal26-Sep-05 11:16 
AnswerRe: How to Display SSN with dashes Pin
Dave Kreskowiak27-Sep-05 6:14
mveDave Kreskowiak27-Sep-05 6:14 
QuestionVBA Current User variable Pin
ScottyCodeMan26-Sep-05 5:29
ScottyCodeMan26-Sep-05 5:29 
Questiontab Control properties Query Pin
directred26-Sep-05 5:03
directred26-Sep-05 5:03 
AnswerRe: tab Control properties Query Pin
Dave Kreskowiak26-Sep-05 5:14
mveDave Kreskowiak26-Sep-05 5:14 
Questionupdating data in the table Pin
shyleja26-Sep-05 4:52
shyleja26-Sep-05 4:52 
AnswerRe: updating data in the table Pin
Dave Kreskowiak26-Sep-05 4:55
mveDave Kreskowiak26-Sep-05 4:55 
QuestionNewbie Pin
james anakin26-Sep-05 4:04
sussjames anakin26-Sep-05 4:04 
AnswerRe: Newbie Pin
Dave Kreskowiak26-Sep-05 4:56
mveDave Kreskowiak26-Sep-05 4:56 
AnswerRe: Newbie Pin
shoaibnawaz26-Sep-05 12:19
shoaibnawaz26-Sep-05 12:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.