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

Please explain value types and reference types used in c#?

675


What is the difference between system.text.stringbuilder and system.string?

774


What is argument in c#?

719


What is the difference between package and interface?

718


What is class sortedlist underneath?

765


What are static and dynamic variables?

872


What is polymorphism in c sharp?

755


How do you pass reference parameters in c#?

675


How does split work in c#?

686


Name some properties of thread class.

799


What is the execution entry point for a c# console application?

771


What is dynamic dispatch?

746


What does executescalar return in c#?

662


What is lastindexof c#?

676


Can an abstract class have a constructor c#?

702