|
| ||||||||||
| Tags: c sharp, compiler, constructors, information technology, micrsoft |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Paramatized Constructors in C # language
|
|
#2
| |||
| |||
| Re: Paramatized Constructors in C # language
Yes I too think that you should not go with the Web development. I will tell you why you should not mess with web development and all that. You will have to remember a lot of tags in that , since it uses a use of languages such as HTML , XML and all that. Well I have done graduation in IT as well, if you ask me why many people prefer Web more than in JAVA when they are asked about the elective , they do this because of the marks, but if you really want to be a good programmer and want to learn a lot in development process then you should choose JAVA over Web development. you will find constructors in all the languages, they are initialized as soon as object of any class is created. |
|
#3
| |||
| |||
| Re: Paramatized Constructors in C # language
All C# object constructors-come up with some exception of theSystem.Object constructors- comprise an calling of the parent class's constructor straight away before the execution of the beginning line of the constructor. These constructor initializers allow you to state which class and which constructor you want to invoke . |
|
#4
| |||
| |||
| Re: Paramatized Constructors in C # language
This usually has two forms: -
|
|
#5
| ||||
| ||||
| Re: Paramatized Constructors in C # language
If you are quite aware of the default constructor , they are similar to the class name but do not have in arguments in their round brackets . A programming language that allows the developers us to attain the objects but providing argument to the constructor method when the object are initialized . The constructor that can accept arguments are called parametrized constructors Example:- Code: class xyz{
int a,n;
public:
abc(int x,int y); //paramererise constructor
................
.................
};
abc::abc(int x,int y) |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Paramatized Constructors in C # language" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Constructors in Java help | cloud101 | Software Development | 4 | 18-01-2012 04:02 PM |
| what are constructors in C++? | Asis | Software Development | 4 | 29-12-2010 07:38 AM |
| Constructors and Destructors in PHP | garfield1 | Software Development | 4 | 02-03-2010 10:01 PM |
| Static Constructors in C# (C sharp ) | NICKAN | Software Development | 1 | 02-03-2009 12:05 PM |
| What are the Constructors and Destructors? | RupaliP | Software Development | 4 | 27-02-2009 06:03 PM |