Object Oriented Programming 7 – Constructors
This is the seventh in a series of videos that introduce object oriented programming (OOP) using Visual Basic.NET (VB.NET). This video demonstrates how to write a customised constructor for a class. That is, how to override the New method of a class which is called automatically whenever an object is created. A customised constructor for a class allows property values to be assigned at the time an object is instantiated. This video also shows how a constructor can be overloaded, allowing more flexibility in the way that property values as assigned. It also includes a constructor overload that retrieves the previously saved state of an object from an Access database at the time the object is created. This particular constructor overload is passed a person’s ID number as a parameter, then makes use of ActiveX Data Objects (ADO) to run an SQL select query against the database to fetch the appropriate property values. Later videos in the series will cover inheritance and method overriding.
Видео Object Oriented Programming 7 – Constructors канала Computer Science
Видео Object Oriented Programming 7 – Constructors канала Computer Science
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
3. JavaScript Programming: HTML 5 Client Side ValidationGoogle Street View Location Guessing Game – Part 2RGB Colour Mixer: 7. Updating Form LabelsPython Programming 5. If StatementsPython Programming 3. InputCryptocurrency. Part Two: Bitcoin ObjectivesHow to Make a Hangman Game with VBA. Part 2 – Building the User InterfacePython Programming 19. Read From a Text FileC# Programming: Lesson 6. Errors and Testing16. Introduction to Programming with VBA - Logical OperatorsLinear Algebra for Computer Scientists. 6. The Angle Between Two VectorsBinary Tree 4. Object Oriented Implementation in VB.NETVisual Basic.NET Programming. Beginner Lesson 19. Linear SearchPython Programming 18. FunctionsPython Programming 6. Relational OperatorsScratch Programming Flappy Toucan Game Introduction1. Introduction to Programming with VBA - The Integrated Development EnvironmentPython Programming 12. Lists and LoopsC# Programming: Lesson 3. Arithmetic OperationsVisual Basic.NET Programming. Beginner Lesson 11. Logical and Relational Operators 2Wireless Communication – Nine: OFDM