Presentation is loading. Please wait.

Presentation is loading. Please wait.

Rully Yulian MF MCAD,MCPD,MCT,MVP VB.NET Independent IT Trainer - Application Developer

Similar presentations


Presentation on theme: "Rully Yulian MF MCAD,MCPD,MCT,MVP VB.NET Independent IT Trainer - Application Developer"— Presentation transcript:

1 Rully Yulian MF MCAD,MCPD,MCT,MVP VB.NET Independent IT Trainer - Application Developer

2 Overview Expression Operator Operator Precedence Operator Overloading

3 Expression Kumpulan dari operand dan operator Operand dapat berupa nilai literal, variabel, atau return value dari sebuah fungsi Operator menspesifikasikan operasi yang dilakukan terhadap satu atau lebih operand

4 Operator Arithmetic +, -, *, /, \, Mod String Concatenation &, + Assignment =, +=, -=, *=, /=, &=, \=, ^= Comparison =,, =, <> Object Is, IsNot, TypeOf, AddressOf, GetType Logical And, AndAlso, Or, OrElse, Not

5 Operator Precedence Urutan operator yang di proses dalam sebuah expression Gunakan tanda kurung () untuk menghindari kesalahan perhitungan Urutan operator yang di proses : ^ - (Negasi) *, / \ (Pembagian Integer) +, - & (String Concatenation)

6 Operator Overloading Bekerja pada Reference Type Two Objects Added? Multiplied? Compared? Harus dideklarasikan dengan Shared keyword Public Shared [otherModifiers] Operator operatorSymbol _ (ByVal operand1 As dataType[, ByVal operand2 As dataType]) _ As returnDataType ' Code Statement End Operator


Download ppt "Rully Yulian MF MCAD,MCPD,MCT,MVP VB.NET Independent IT Trainer - Application Developer"

Similar presentations


Ads by Google