Friday, July 18, 2008

OOPs with C# - Session 1

The concept of object orientted programming introduces a new concept which is known as class.

A class is a basic building block of object oriented programing.

Syntax:

class A
{

}

Regarding access modifier of class:
class access modifier = {public,protected,
private}
1. In most cases we mention public or protected to be the access modifier of a class. Very few case we can encounter where we mention private to be access modifier of a class.

Q. What happens if we declare a class private?






How Object Oriented Programming came into picture

1. Procedural programming: the program is written as a collection of actions (a procedure) that are carried out in sequence, one after the other. The order is important.
----- Structured programming can be seen as a subset or subdiscipline of procedural programming, one of the major programming paradigms.
----- At a low level, structured programs are often composed of simple, hierarchical program flow structures. These are regarded as single statements


______________Programming Paradigm
_______________________|
_______________________|___________________
___
|_______________________________________|
Unstructured Programing
________________ structured Programing
___________________________________________|
___________________________________________|_________________

____________________|________________________________________|
___________Procedural Programing ___________________ Object Oriented Programing



1. Unstructured Programing: Most simplest way of doing programing. Just sequence of instructions to be executed to achieve the task.Does not follow any structure(no program structure and no data structure). So there is no methods or procedure in this kind of programing.


2. Structured Programing: This solicites for a breaking the whole task into multiple subset of instruction. This subsets are methods or procedure.

Advantage over
Unstructured Programing:

1. Better Code maintanace
2. Better Reusability of code

3. Object Oriented Programing

Consider all real life entities as objects.
Introduces concepts of class.

Advantage over Unstructured Programing:

1. Better code reusuability
2. Better code maintanence
3. Data Encapsulation
4. Data hiding


Comparision:

Unstructured Programing

Structured Programing

Object Oriented Programing

code reusuability

less

medium

more

code maintanence

Most difficult

medium

Most easier

Data Encapsulation

No

No

Yes

Data hiding

No

No

Yes










Error: The following module was built either with optimization enabled or without debug information

Fix: Please do the following steps

1. From menu, select Tools then Options.



2. Once options is clicked following screen appears.



3. Select General under Debugging



4. Uncheck the checkbox beside Want if no user code on launch.



I am sure this will resolve the problem.
if its not working for you guys please pass your information here with this post I will try to see into that.

Monday, June 23, 2008

Finally Puzzle !!!










As usual I was trying to play with try catch block of .NET 2.0 today ..( hey guys I am assureing you that its not going to be another nerd's den of .NET) and loved to see that agian I was forgetting some key points of that !!!













Just to summarise what I am going to put together, consider the following code snippet ...





try
{

// any code here


}
finally
{
Console.WriteLine("String Value 1");
Console.WriteLine("String Value 2");
}



try
{

// any code here


}
finally
{
Console.WriteLine("String Value 1");
}
Console.WriteLine("String Value 2");






Tuesday, January 29, 2008

Lyrics: Vairamuthu
Singer: Minmini, Shubha

Bakthi Paadal Phadattuma
Paalum Thenum Odattuma
Santhosham Kaanbhoma
Samikku Pushpangal Vendaama
Sambo Sambo Sambo Sambo
Sayangalam Vambo Vambo
Boomi Thandi
Pogamal
Saagamal Mothchangal Kanbom Ippo

Utchi Megam Ennai Parthathum
Konjam Neer Senthum Allava
Uppu Katru Ennai Theendinaal
Satre Thithikkum Allava
Ennai Pen Kettu Caesar Vanthaan
Endhan Pinnale Hitler Vanthaan
Yaarum Illatha Nerathilae

Sollamal Bramman Vanthaan
Medai Pottu Methai Kollavae
Jadai Seithale Podhumae
Engal Veetu Kashmir Kambali
Iruvar Kulirthanga Koodumae
Indha Mogathil Enna Kutram
Kadal Yogathin Utcha Kattam
Andha Sorgathil Saerkattuma
Inndraikku Unnai Mattum

NB : Thanks to http://www.mohankumars.com where I found the above lyrics.

Sunday, December 9, 2007

Tamil Lyrics

Hey friends its me again ..
I am posting here tamil lyrics of some good tamil song ... hope other Non Tamil friends who love tamil movie songs will help them a lot ..

Movie: Deeapavali Song : Poogathe
Music: Yuvan Shakar Raja

Pogadhe pogadhe nee irrunthaal naan irrupen
Pogadhe pogadhe nee pirinthaal naan irrapen

Unnoda vaalntha kaalangal yaavum kanavai ennai mooduthadi
Yyaar endru neeyum enna paarkum pothu uyrai uyire poguthadi

Kalaraiyil kuda jannal ondru vaithu undhan mugham paarpenadi
Pogadhe pogadhe nee irrunthaal naan irrupen
Pogadhe pogadhe ee pirinthaal naan irrapen


Kalainthalum megham athu meendhum medhakum
Adhu pola thaaney undhan kadhal ennakum
Nadai padhai vilaka kadhal viluntha uddan nadaipathuku
Nerupalum mudiyath amma nineivugalai allipathuku
Unnakaga kathirrupen oh
Uyirodu paarthirrupen oh

Pogadhe pogadhe nee irrunthaal naan irrupen
Pogadhe pogadhe nee pirinthaal naan irrapen

Alagana neram adhai neethaan kudduthai
Aliyatha sogam athaiyum nee thaan kudduthai
Kan thoogum neram paarthu kadavul vanthu ponathu pol
Yen vaalvil vanthei aanai yemathru thaangavillaiye
Pennai nee illamal ..... Bhoologam irrutiruthei

Pogadhe pogadhe nee irrunthaal naan irrupen
Pogadhe pogadhe nee pirinthaal naan irrapen

Movie: Deeapavali Song : Poogathe
Music: Yuvan Shakar Raja

Kadhal Vaithu Kaathal vaithu, kaathal vaithu kaathirunthen

Kaatril unthan kural mattum keatirunthen

Sirithaai isai arinthen Nadanthaai dhisai arinthen

Kaathal enum kadalukkul naan vizhunthen

Karaiyinil vantha pinnum naan mithanthen Asainthaai anbey asainthen Azhagaai aiyo tholainthen

Kaathal vaithu, kaathal vaithu kaathirunthen Kaatril unthan kural mattum keatirunthen

Asainthaan anbey asainthen Azhagaai aiyo tholainthen

Devathai kathaiiii keattapothellaaaam, nijam endrun ninaikkavillaiiiiii

Neril unnaiyeyyy paatha pinbu naaaaan, nambi vitten marukkavillaiiiiiii

Athikaalai vidivathellaaaam, unnai paarkkum mayakkathilthaaaan

Anthi maalai maraivathellaaaam, unnai paartha thirakkathilthaaaan

Kaathal vaithu, kaathal vaithu kaathirunthen

Kaatril unthan kural mattum keatirunthen

Asainthaan anbey asainthen Azhagaai aiyo tholainthen

Unnai kanda naaaazh ozhi vattam pol, ullukkulley suzharuthadiiiiiiii

Un idathil naan pesiyathellaaaam, uyirukkul ozhikkuthadiiiiiiiiiii

Kadalodu pesa vaithaaiiiiiii

Kadigaram veesa vaithaaiiii

Mazhaiodu kuzhikka vaithaaiiiiii

Veyil kuda rasikka vaithaaiiiiiiiiii

Kaathal vaithu, kaathal vaithu kaathirunthen

Kaatril unthan kural mattum keatirunthen

Sirithaai isai arinthen Nadanthaai dhisai arinthen

Kaathal enum kadalukkul naan vizhunthen

Karaiyinil vantha pinnum naan mithanthen

Asainthaai anbey asainthen

Azhagaai aiyo tholainthen

Asainthaai anbey asainthen

Azhagaai aiyo tholainthen

Saturday, November 17, 2007

In Bangalore ...

A great city "Garden City" is a place where I always want to be in.

Karnataka has always been a nice and beautiful to me .....

I had quite a few friends over when I stayed there in Thavarekere, Bangalore .... The big boon I had was just a bike .... every time ... BROOOOOOMMMM ... go whereever you want ... whenever ...

There was Sherin Mathew, my company collgues and friend .... we used to comeback after having a very very hectic day at office ..... We were really good friends and enjoyed a lot those day ...

Frankly speaking I learned a lot with Sherin ..... atleast Javascript !!! What Sherin what say ?;-)

But it was roommate Sourav with whom I spent some most cherishable and enjoyable moments of my life. There is Madan Pub story .... Nandi Hill program .... Sanky Tank vigil ...... enjoying riding over Outer Ring Road .... Rajarajeswari Temple Tour .... Visiting Ragikutta Temple .....
and the lists goes on and on ....

Wish you very best my friends ....

Hope to come to Bangalore as many times as possible. Lets see ... !!!