Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tutorial 5 Introducing Code Programming. What is Class Building blocks of a program Provided by VB.Net Framework Class Library Template definition of.

Similar presentations


Presentation on theme: "Tutorial 5 Introducing Code Programming. What is Class Building blocks of a program Provided by VB.Net Framework Class Library Template definition of."— Presentation transcript:

1 Tutorial 5 Introducing Code Programming

2 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.

3 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 

4 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

5 Structures of OOP Action  Object.Behavior  Object.Method Value  Object.Property  Object.Attribute

6 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”


Download ppt "Tutorial 5 Introducing Code Programming. What is Class Building blocks of a program Provided by VB.Net Framework Class Library Template definition of."

Similar presentations


Ads by Google