Tutorial 5 Introducing Code Programming
What is Class Building blocks of a program Provided by VB.Net Framework Class Library Template definition of the methods and variables in a particular kind of object VB Windows forms inherit definitions from the System.Windows.Forms.Form class.
Object-Oriented Programming (OOP) Programming language model Organized around "objects" rather than "actions" and data rather than logic Subclass and inheritance Sources: techtarget.comtechtarget.com Class 1Class 2 Food Fruit Apple Machine Computer Apple Continue
Polymorphism: Actions or behaviors that share the same essence would have a common name even though they belong to different objects. E.g., opening (action) a computer application (object) is different from opening a door in terms of operations. However, the name of the action for both objects is open since the idea is the same. ComputerApplicatoin.Open Door.Open
Structures of OOP Action Object.Behavior Object.Method Value Object.Property Object.Attribute
Val and Str Functions Val: Returns a numeric value of an argument (string value) E.g. Val(“123”) 123 Str: Returns a string value E.g. Str(123) “123”