Explain constructor.

Answer Posted / rajkamal busi

Constuctor is a Method/Fuction

- Having Same Name of that Class(which it belongs to).
- which doesn't have any Return Type.
- and Get Executed Automatically when ever Object is
Created for that class.

Mostly Constuctor is Used for Initialization of Objects.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cosole application?

581


Is c sharp open source?

489


What is difference between private and static constructor?

470


What is tpl in c#?

500


Does c# support multilevel inheritance?

485






Distinguish between finally and finalize blocks?

520


Is class reference type c#?

540


What are synchronous and asynchronous operations?

479


What is the difference between IEnumerator and IEnumerable?

681


What is the difference between virtual method and abstract method?

547


Explain data types in c#?

522


What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?

500


Distinguish between the Debug class and Trace class with its functionality?

535


What are jagged arrays used for?

485


What is a float?

496