Creating a Sealed (?) Class in C#

how to create shield class in c#

Page 1 of 1

4 Replies - 7217 Views - Last Post: 19 December 2009 - 12:54 PM Rate Topic: -----

#1 rakesh_c22   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 19-December 09

Creating a Sealed (?) Class in C#

Post icon  Posted 19 December 2009 - 08:57 AM

how to create shield class in c#[code]
Is This A Good Question/Topic? 0
  • +

Replies To: Creating a Sealed (?) Class in C#

#2 Core   User is offline

  • using System.Linq;
  • member icon

Reputation: 784
  • View blog
  • Posts: 5,101
  • Joined: 08-December 08

Re: Creating a Sealed (?) Class in C#

Posted 19 December 2009 - 09:01 AM

What exactly do you mean by shield class?
Was This Post Helpful? 0
  • +
  • -

#3 eclipsed4utoo   User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1535
  • View blog
  • Posts: 5,972
  • Joined: 21-March 08

Re: Creating a Sealed (?) Class in C#

Posted 19 December 2009 - 09:29 AM

I think he means a sealed class.
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1659
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Creating a Sealed (?) Class in C#

Posted 19 December 2009 - 09:50 AM

Here's some information for you:

Abstract and Sealed Classes
Sealed (C#)
Sealed Classes & Methods in C#
Using Sealed Classes In .Net

That should get you started

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#5 FlashM   User is offline

  • D.I.C Lover
  • member icon

Reputation: 383
  • View blog
  • Posts: 1,195
  • Joined: 03-December 09

Re: Creating a Sealed (?) Class in C#

Posted 19 December 2009 - 12:54 PM

Just use sealed keyword when writing code for you class eg:

public sealed class MyClass
{
   ...
}


This post has been edited by FlashM: 19 December 2009 - 12:54 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1