Sunday 7 May 2017

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

Jab koi entity jisey hum class ki surat me bna rhey hongey, woh "abstract data type" kehlaye gi lakin agar yehi entity hum database me bna rhey hon ge to yeh "table" kehlaye ga.



Abstract data type is basically a collection of homogeneous attributes and behaviors. Homogeneous ka matlab hai k aik hi type ki ya aik hi tarha ki koi cheez. FOR EXAMPLE: Agar student ka behavior hai "to study(perhna)" to yeh behavior teacher ka nahi ho sakta aur agar teacher ka behavior "perhana" hai to yeh behavior student ka nahi ho sakta, Is ka matlab yeh hua k students se related jitne bhi behaviors hain woh student ki class me honge aur teacher se related jitne bhi behaviors hain woh teacher ki class me honge.



Basic members of class(abstract data type) ko agar hum classify kre to hum yeh keh saktey hain k is me humare pass "data members" aur "function members" hotey hain. Data members me humare pass variables hotey hain jab k function members me humare pass properties, functions aur constructors hotey hain.



Agar hum user se input le k koi operation perform krtey hain to is k liye hum Console.ReadLine() ka function use krtey hain. Console.ReadLine() ka function humey string data type me output de ga aur phir hum data type ko change krne k liye "Type casting" kren ge. Agar hum user se integer value input me le k us ko print krwana chahtey hain to Console.ReadLine() ka funnction is input value ko integer data type me nahi balkey string data type me apney pass hold kre ga, to hum string ko integer data type me convert krne k liye type casting kren ge.

1 comment:

  1. It is really a great work and the way in which u r sharing the knowledge is excellent.Thanks for helping me to understand basic concepts.Thanks for your informative article.. School Management System

    ReplyDelete