Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Power Lifting Lever Belt
SkullVamp
Updated:
Saturday at 10:32 PM
Ad icon
port.lk Domain for sale
Lankan-Tech
Updated:
Saturday at 3:55 PM
Colombo
Kaduwela - Two Storey House for Sale
dilrasan
Updated:
Jun 11, 2026
Ad icon
Wechat qr verification
Pawan2005
Updated:
Jun 11, 2026
🚀 GOOGLE AI PRO 18 MONTHS ACTIVATION 🚀
sayuru bandara
Updated:
Jun 10, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Talk!
Learning C# with .NET framework
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="moonrock" data-source="post: 16158338" data-attributes="member: 486885"><p>object එකක් කියන්නේ මේ වගේ. කාගේ හරි ළග තියෙනවා කේක් හදන්න පුලුවන් වට්ටෝරුවක්. ඒක මගින් ඊට පස්සේ කවුරු හරි හදනවා කේක් එකක්. මේක තමයි class වලින් object එකක් හදන විදියත්.</p><p></p><p>programming පැත්තෙන් ගත්තොත්.</p><p></p><p>අපි හදනවා </p><p>[CODE]</p><p></p><p>/*මේ තියෙන්නේ class එකක් මේක හරියට වට්ටෝරුවක් වගේ cake එකක් හදන්න.</p><p>බලන්න මෙතන තියෙනවා දාන්න ඕන දේවල් ingredients යටතේ, හදන විදිය howToMake යටතේ,cakeRecipe කියලා මුලින්ම එකක් තියෙනවා නේ ඒක තමයි constructor එක සාමාන්යයෙන් class එකකට call කරාම මුලින්ම execute (call වෙන එකයි) වෙන්නේ මේ constructor තියෙන දේවල් එතකොට එකට දාන්න මුලින්ම යන්න ඕන ඒවා */</p><p></p><p>class cakeRecipe</p><p>{</p><p> public cakeRecipe()</p><p> {</p><p> }</p><p></p><p> public ingredients()</p><p> {</p><p> string[] ingredients = {"egg","flour","chocolate","coloring"};</p><p> }</p><p></p><p> public howToMake()</p><p> {</p><p> string howtoMake = "instructions";</p><p> }</p><p></p><p>} </p><p></p><p>//ඊළට අපේ main application එකේ යොදාගන්නේ මෙහෙමයි. </p><p></p><p>class mainProgram</p><p>{</p><p></p><p> static void Main()</p><p> {</p><p> cakeRecipe recipe = new cakeRecipe(); // මෙන්න හැදුවා object එක</p><p> recipe.ingredients(); // දැම්මා අවශ්යය කරන දේවල්</p><p> recipe.howToMake(); // ගත්තා හදන හැටි.</p><p> }</p><p></p><p>}</p><p></p><p>//දැන් කේක් එක අපේ අතේ. මේක තමයි class/object කියන්නේ හරි සරල තේරුමක් තියෙන්නේ.</p><p></p><p></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="moonrock, post: 16158338, member: 486885"] object එකක් කියන්නේ මේ වගේ. කාගේ හරි ළග තියෙනවා කේක් හදන්න පුලුවන් වට්ටෝරුවක්. ඒක මගින් ඊට පස්සේ කවුරු හරි හදනවා කේක් එකක්. මේක තමයි class වලින් object එකක් හදන විදියත්. programming පැත්තෙන් ගත්තොත්. අපි හදනවා [CODE] /*මේ තියෙන්නේ class එකක් මේක හරියට වට්ටෝරුවක් වගේ cake එකක් හදන්න. බලන්න මෙතන තියෙනවා දාන්න ඕන දේවල් ingredients යටතේ, හදන විදිය howToMake යටතේ,cakeRecipe කියලා මුලින්ම එකක් තියෙනවා නේ ඒක තමයි constructor එක සාමාන්යයෙන් class එකකට call කරාම මුලින්ම execute (call වෙන එකයි) වෙන්නේ මේ constructor තියෙන දේවල් එතකොට එකට දාන්න මුලින්ම යන්න ඕන ඒවා */ class cakeRecipe { public cakeRecipe() { } public ingredients() { string[] ingredients = {"egg","flour","chocolate","coloring"}; } public howToMake() { string howtoMake = "instructions"; } } //ඊළට අපේ main application එකේ යොදාගන්නේ මෙහෙමයි. class mainProgram { static void Main() { cakeRecipe recipe = new cakeRecipe(); // මෙන්න හැදුවා object එක recipe.ingredients(); // දැම්මා අවශ්යය කරන දේවල් recipe.howToMake(); // ගත්තා හදන හැටි. } } //දැන් කේක් එක අපේ අතේ. මේක තමයි class/object කියන්නේ හරි සරල තේරුමක් තියෙන්නේ. [/CODE] [/QUOTE]
Insert quotes…
Verification
Awruddata maasa keeyada?
Post reply
Top
Bottom