Characteristics of Class to become an Object

We all know that an object is the instatnce of any given class, are we really sure that every class code can be instantiated as Object ?!#$%^*

Is there any thing that is hidden behind the screen of "CLASS". Is any piece of code that is embedded with in "{" and "}" can be considered as "Class"?

During my study with W3C.com, i come to a conclusion that, the following features are must for any piece of code to be instantiate as an object.

0) Type
1) Only one Distructor allowed per class
2) Indexer facility should be provided
3) Default Constructor
4) Parameterised Constructor

5) Constant
6) Fields
7) Properties
8) Methods
9) Events

If any given code / class that supports all these features, that can be considered for instantiating as an Object.

What do you say ?

Comments

Popular posts from this blog

Network Intrusion Detection using Supervised ML technique

Common mistakes by Interviewer

Keep the system active, to avoid the auto lock