Wednesday 19 July 2017

Lecture#3 ka Point#77 (Csharp Roman Hindi/Urdu Me).

Agar variable humney function, constructor ya property(get & set) k ander declare kiya hoga to woh "local variable" kehlaye ga.



Agar kisi function me 2 integers add ho k return hon ge to hum us function ki return data type "long" rakhey ge kyun k aik achey programmer ki nishani hai k woh apne program ko hr aspect se soch rha hota hai. Agar misaal k tor pe yeh dono integers add ho k aesi value return kren jo integer data type ki maximum value se bari ho to us k liye humey integer se bari data type rakhni hogi i.e. "long data type".



Visual Studio me Intellisense ka matlab hai number of features(list members, parameter info, quick info & complete word).



Agar humney aik variable declare kiya hai jis ka scope "if statement" ya phir "loop" ki "curly brackets{}" k dermiyan me hai to yeh variable humey is "if statement" ya "loop" se bahr available nahi hoga.



"local variables" ka scope limited hota hai jis ki wajah se hum "local variables" k sath access modifiers use nahi krtey.

No comments:

Post a Comment