You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
394 B
C#
24 lines
394 B
C#
/*
|
|
* C# Program to Create Sealed Class
|
|
*/
|
|
using System;
|
|
sealed class SealedClass
|
|
{
|
|
public int x;
|
|
public int y;
|
|
}
|
|
|
|
class SealedTest
|
|
{
|
|
static void Main()
|
|
{
|
|
SealedClass sc = new SealedClass();
|
|
sc.x = 100;
|
|
sc.y = 180;
|
|
Console.WriteLine("x = {0}, y = {1}", sc.x, sc.y);
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
|
|
/*
|
|
x = 100 ,y = 180 |