what is a constructor?

Answer Posted / pushparaj pentakota

constructor is a special method it's invoke when object is
created and used to initialize instance members.and doesn't
have any return type.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create extension method for interface?

494


What is generic method in c#?

494


Differentiate between static class and singleton instance?

524


Does c# support const methods, properties, or events?

548


What is a dynamic assembly?

527






What is difference between first and firstordefault?

493


What is executenonquery c#?

471


Why are dynamic link library used over static one?

546


Differentiate between method overriding from method overloading with its functionality?

543


Explain the difference between Metadata and Manifest

551


Is var a data type?

508


Explain the Abstract class in c#.net

553


What is the use of partial methods?

578


Is c# substring zero based?

506


What are cshtml files?

489