Buy Questpond's video subscriptions on
huge discount
.
Online: 876
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 ...
About Constructor initialization
Posted by
Saravanan05
under
C#
on 5/19/2014 |
Points: 10
| Views : 723 | Status :
[Member]
| Replies : 1
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
Hi
This is the interview question:
If we compile the class, it will create Constructor automatically.(if we are initialize the Constructor).
why compiler create Constructor automatically?
what is the use of it?
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Sheonarayan
on: 5/19/2014
[Administrator]
HonoraryPlatinum
|
Points: 25
0
Hi Saravan...
Thanks for asking question.
Yes, the constructor gets created automatically if you have not defined explicitly however there is no use of this constructor as you will not be able to use it.
To answer your remaining question, I would encourage you to read following posts of DotNetFunda.com as this will give you answer to most of the questions you might have about constructor .
http://www.dotnetfunda.com/interviews/show/4054/what-is-constructor-chaining
http://www.dotnetfunda.com/articles/show/1960/types-of-constructor-in-net
http://www.dotnetfunda.com/interviews/show/356/constructor-and-destructor
Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Saravanan05
, 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 ...