Chunchunmaru
Eternal Poster
- Joined
- Aug 31, 2021
- Posts
- 766
- Reaction
- 288
- Points
- 393
eto po ung code:
Eto yung tanong
C#:
using System;
using System.IO;
using System.Linq;
using System.Collections.Generic;
namespace DelegateProgram
{
}
public delegate string name(string firstName, string lastName);
public class NameDelegate
{
public static string FullName(string firstName, string lastName)
{
return firstName + lastName;
}
public static string Message(string message1, string message2)
{
return message1 + message2;
}
public static void Main()
{
name delAdd1 = NameDelegate.FullName;
name delAdd2 = NameDelegate.Message;
MessageBox.Show(delAdd1("Mai", " Sakurajima").ToString(), delAdd2("Megumin", " the Founder of Chunchunmaru").ToString());
}
}
You do not have permission to view the full content of this post. Log in or register now.
Attachments
-
You do not have permission to view the full content of this post. Log in or register now.