Monday 24 April 2017

Lecture#2 ka Point#70 (Csharp Roman Hindi/Urdu Me).

BASIC MEMBERS OF ABSTRACT DATA TYPE(ABSTRACT CLASS):-

  1. Variables.
  2. Properties.
  3. Functions(Methods/Procedures/Sub-Routines).
  4. Constructor.

Basic members of class me Variable ko hum "data member" bhi kehtey hain. Data member ka matlab aesi cheez jo memory k andar data ko hold kre ya hum aasan alfaz me yeh bhi keh saktey hain k variable aik aesi cheez hai jis me humara data store hota hai.



Basic members of class me Properties, Functions aur Constructor yeh sab class k behaviors hain.


For Example
byte b = 100 ;


byte   →   Data type.
b    →   Variable ya placeholder.
=    →   Assignment Operator.
100   →   Data.
;    →   Line terminator.


Variable data ko represent krta hai with data type. Variable humare pass placeholder hai jahan hum memory k andar data ko store kertey hain. Yeh placeholder kisi data type ko represent krta hai aur jis datatype ko represent krta hai isi type ka data is placeholder me store hoga is k ilawa kisi doosri type ka data is placeholder me store nahi hoga. To hum yeh bhi keh saktey hain k humare pass variable specific data type k honge.



FOR EXAMPLE: Variable ya to byte data type ka hoga ya phir short data type ka hoga ya kisi bhi data type ka hoga lakin aesa bilkul bhi nahi hoga k yeh variable short data type ka bhi ho aur byte data type ka bhi ho kyun k yeh variable kisi aik (specific) data type ko represent kre ga ya hum yeh bhi keh saktey hain k is variable ki aik (specific) data type k data ko apney andar store kre ga.



Variable ne temporary ya kuch time k liye data ko memory me hold kiya hoga aur jesey hi hum apna program close kren ge to yeh variable memory se flush out ho jaye ga.



Variables humare pass 2 types k hotey hain.

  1. Instance Variable.
  2. Local Variable.

No comments:

Post a Comment