class Circle
{
int radius;
double Area()
{
return Math.PI*radius*radius;
}
}
Circle c;
c = new Circle();
// When you use new keyword to create an object, the runtime has to construct that object by using the definition of the class. A constructor is a special method that runs automatically when you create an instance of a class.
What is a constructor
What is instance of a class
Thursday, July 11, 2013
Subscribe to:
Post Comments (Atom)
Categories
Blog Archive
-
▼
2013
(24)
-
▼
July
(14)
- Polymorphism nedir
- Static Fields in a class
- What is a constructor
- Defining and using a class and Constructor
- Memory Usage by Classes, Methods and Functions
- Encapsulation 3
- What is Encapsulation 2
- What is Encapsulation
- Reading and Writing to a File
- Exception Example
- Beginning Visual C# 2010
- Animated Elipse in C#
- Ref and Out in Visual C#
- How to download an image from a website using c#
-
▼
July
(14)
Popular Posts
Powered by Blogger.
0 comments:
Post a Comment