Buy Questpond's video subscriptions on
huge discount
.
Online: 1144
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
Why and when should I make a class 'static'? What is the purpose of 'static' keyword on classes? [Resolved]
Posted by
Kasani007
under
C#
on 7/17/2014 |
Points: 10
| Views : 803 | Status :
[Member]
| Replies : 1
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Why and when should I make a class 'static'? What is the purpose of 'static' keyword on classes with example ?
[Resolved]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Goud.Kv
on: 7/17/2014
[Member]
[MVP]
Gold
|
Points: 50
0
Hi Kiran,
static
is a modifier which is used with
classes
,
methods
,
fields
,
operators
,
constructors
and
events
.These modifiers/keywords cannot be used as types other than
classes
like
destructors
,
indexers
etc.
One basic difference between
static
and
non-static
class is that, you cannot instantiate
static
class which means you can't use any new keywords for creating variables of that class.
Thanks & Regards,
Krishna
Kasani007
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
Climax Delay Condoms for Long Lasting Pleasure
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
Where can I found sample MVC projects to learn and improve skills
(1)
Extract a value from HTML string
(0)
Get only year part from date string in SQL server
(0)
Get only year part from date string in SQL server
(0)
Get only year part from date string in SQL server
(0)
Get only year part from date string in SQL server
(0)
More ...