Today i'll write a topic in C# programming that would clear your concept regarding some basic terms like
1.class
2.object
3.Methods
->Some Basic point in C#
1.what is a class in programming language?
we see many things in real life for example computer,cow,lion,mixer,cd player,mouse,ram(a humanbeings or name of a man),printer,tree and etc.you know it is an object.i'll discuss it later.
first we categorized it according to their behaviour and some properties into a group this logical group makes a class.
suppose we categorize cow,lion,Goat into one group that makes a class and we can say Animal .
That means Animal is a class where each animal belongs.
And According to my defination some properties of cow like four foots,two ears and one mouth each has those things that'why we categorized into animal ..now we can eaisly catrgorized other things like cd player,Tv into electornics device and we can give a name it "ELECTRONICS DEVICE " that is a class.
A simple class is declared in C# like
class Animal
{
}
wherer class is keyword(keywords are the word that has special meaning in programming language )
and Animal is name of class..
Now I'll disscuss about object next day.
About Me
Tuesday, January 19, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment