Introducing Code Programming - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

Introducing Code Programming

Description:

VB Windows forms inherit definitions from the System.Windows.Forms.Form class. ... Programming language model ... Object.Attribute. Val and Str Functions ... – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 7
Provided by: Yun5
Category:

less

Transcript and Presenter's Notes

Title: Introducing Code Programming


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

Class 1 Class 2
Food Fruit Apple Machine Computer Apple
Sources techtarget.com
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
Write a Comment
User Comments (0)
About PowerShow.com