Technology Guruu

  • Home
  • Site Info
    • About Us
    • Disclaimer
    • Privacy Polacy
  • Home
  • Digital Marketing
    • SEO
    • SMM
    • SEM
  • Quotes
  • Technical
  • Java
  • .Net
    • C#.Net
    • ASP.Net
  • Keychains

Monday, 4 April 2016

Top Most Advantages Of Delegates

 Akansha     17:30:00     TechnicalQuestions     No comments   

Toip 10 Advantages Of Delegates

Delegates
  • Using delegates with a single call we can invoke multiple methods.
  • Implementation of delegates will improve the performance of the application
  • Multiple class Files
  • Byvdefault every project will come with single class file but it can contain multiple class files

Example for multiple class files

Step1:
open a console application and rename it as multiple class files example
Step2:
Add one more class file to the solution explorer i.e class1.cs
namespace MultipleClassFilesExample
{
class Employee
{
internal void Induction()
{
console.writeLine("every employee has to attend induction training");
}
interna void Appraisal()
{
console.writeline("every employee will have apprisal for an year");
}
internal void Nop(0
{
Console.writeline("every employee has to serve notice period while leaving company");
}
}
}
Step4:
wrote below code program.cs
namespace MultipleFilesExample
{
class program
{
void main()
{
Employee obj=new employee();
obj.Induction();
obj.Appraisal();
obj.Nop();
console.Readline();
}
}
}
Friends You like My Post please Share To your Friends Through Facebook,,Twitter,Google+.You Feel Free Comment On my post Thank you. 
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Popular Posts

  • Missing My Friend Quotes : Friendship Day Quotes 2017
    Friends today my article about missing friends and moments with them. Here you are seen the best friendship quotes and some  feelings when...
  • Love Failure Quotes and Sad valentines day Quotes
    We Love Someone is a easy process sometime takes long time to love someone love others within short period but anyway always love dependin...
  • Brief description about Delegates
    Introduction about delegates and why delegates are came the main purpose of delegates how to useful and what are the advantages and disadv...
  • Na Tanu Samjhawan Ki Song lyrics
    Na Tanu Samjhawan Ki Song Lyrics With English Translation Movie : Humpty Sharma ki Dulhaniya Song : Samjhawan Song Singer : Arijit ...
  • Detail Introduction about C#.Net
    Brief Introduction about C#.Net  Introduction C#.Net is the one of the Programming Language the .Net Framework also contains ano...
  • Wonderful sayings about Life.
    I Believe Follow  Things(Life Quotes) I Believe I believe: ********** Believe in Life ********** That we don't have to chan...
  • Brief Description about Multicast Delegate
    Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time. Multicast ...
  • Brief description about properties
    Properties in C#.Net Properties Property is a member of a class which we will use to assign the value to a variable as well as whi...
  • Top 10 valentine's day Quotes and Greetings wishes
    All Lovers have Anxiety in Valentines day because it is a festival to all lovers in these they enjoy a lot and celebrate the Valentine...
  • Valentines day poems and wishes or Quotes
    A friendship that like love is warm; A love like friendship, steady.we are having the most difference between love and Friendship you mus...

Categories

  • Entertainment (67)
  • TechnicalQuestions (58)
  • Quotes (11)
  • C#.Net (8)
  • Java (8)
  • ValentinesDay (4)
  • SEO (3)
  • Home
  • About Us
  • Disclaimer
  • Privacy Policy
  • Sitemap

Copyright © 2015-2017 Good Friends 5.All Rights Reserved• And Our Sitemap • All Logos and Trademark Belongs To Their Respective Owners•