Download presentation
Presentation is loading. Please wait.
Published byItzel Urwin Modified over 10 years ago
1
Rully Yulian MF MCAD,MCPD,MCT,MVP VB.NET Independent IT Trainer - Application Developer http://www.yulianmf.com rully@yulianmf.com
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.