Can variables defined in interface. If yes how we can
call/use it in class.

Answer Posted / sujai cn

No we can't define variables in interface.

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define a class and an object?

563


Explain get and set accessor properties?

496


What is regex replace in c#?

520


What is an example of a delegate?

519


How do you prevent a class from being inherited?

537






Can list contain duplicates c#?

495


what is c# command?

507


What is constructors, explain with syntax

555


What does int parse do in c#?

479


What is the difference between dictionary and hashtable in c#?

476


Why do we use anonymous method in c#?

509


In which order the destructor is called for an inherited class?

535


Explain the difference between object type and dynamic type variables in c#?

503


What is the difference between method overriding and method overloading?

488


What is difference between array and collection in c#?

449