Visual Basic Tutorial – 91 – Introduction To Classes

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

15 responses to “Visual Basic Tutorial – 91 – Introduction To Classes”

  1. Jay H Avatar

    First of all, forgive me for wording this in a way that may sound completely incorrect to people who are aware of the proper way to word this. I am trying to simplify it down into generalized layman terms that everyone (including myself) can understand, at the potential expensive of sacrificing accuracy. So it sounds like a "Class" is nothing more than a way to organize, while also potentially breaking functionality, by isolating the ability to interact with ALL the code in the "Class" through the main form. It sounds like putting things into "Classes" would be more of something you would only add, after you know that the code can be isolated and not need to be reloaded while the application is running. This means, if you follow a tutorial that uses an excess amount of Classes, it may be a nightmare to try to keep those Classes intact, while doing something the tutorial program was never intended to do, which is where I am stuck (trying to reconnect with TCP connections from this video https://youtu.be/MSiBbtxWpI8 ).

  2. Swastik Bhat Avatar

    Hey Thenewboston,

    You explain pretty good man!!!
    What ever I was taught in the Uni. I always make sure that I refer to your videos!!
    Your channel has indeed helped me a lot!!
    Thank you sooo sooo much man!! =)

  3. robert mccully Avatar

    Why are you writing Public Sub Eat instead of Public Eat ?

  4. Abelius Avatar

    You must feed the cat before embarking on a tutorial creation quest, you know…?  😀

  5. suguruni deep Avatar

    that what I was looking for, thank you so much

  6. Dibbie Knight Avatar

    How do I make instances? Like lets say I have a screen to prompt the user first before something, like they click on the "calculator" app, but it first goes to form1, which is "Enter your name" they put their name, and click "Next" and that Next button takes them to Form2, where the actual calculator is (that was just a example, im really trying to make a selection screen for window or fullscreen, regardless what they pick, it goes to Form2 instance, where its resized to wat they picked)

  7. Brandon Brown Avatar

    Thank you for this series

  8. kfirba2 Avatar

    Since he's not responding to any comment, I will try to explain you.
    The variables are PRIVATE which means, you can't access them from another class.
    But, what if we want to access them? we use a PUBLIC function which i can access from ANY class and the function will give me the value of the variable because the function can access it since it's in the same class as the variable.

  9. patroki noheat Avatar

    Hi Sam!
    Why do you use so many functions when you already have the variables ? and why are the functions Ppublic while you defined the variables as private? Thank you

  10. 3dUber Avatar

    thx for tutorial!

  11. 3dUber Avatar

    Nvm i found out what i did i forgot to put end sub before the new function

  12. 3dUber Avatar

    i keep getting a error on

    public function getweight() As double
    return weight
    end function

    at 4:38
    plz help!

Leave a Reply

Your email address will not be published. Required fields are marked *