Download presentation
Presentation is loading. Please wait.
1
Classes and Objects VB.net
2
Class vs. Object A class is the generic code common to the object. We design our objects based on that generic object. A class is like the blueprint. An object is like the building. A class is like a factory mold, an object is like the item that was created. A class is just the ideal of something, whereas an object is an INSTANCE of that class.
3
Creating a Class Class Human Private intAltitude As Integer = 0
‘the code to create your Human Function jump() as Integer intAltitude = intAltitude + 10 Return intAltitude End Function Public Property Altitude As Integer Get End Get Set (ByVal intValueSet as Integer) intAltitude = intValueSet End Set End Property End Class
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.