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

What are the types of methods in c#?

463


Explain the difference between pass by value and pass by reference.

551


What is default boolean value in c#?

489


What is string empty?

505


What is a linq in c#?

484






What is boxing and unboxing in c#?

474


What is iqueryable?

483


What are the features of c#?

513


What is or operator in c#?

544


What is a nullreferenceexception?

562


Do loops in c#?

503


How can you use abstract class and interface?

544


What are regular expressions? Search a string using regular expressions?

518


Why do we use lambda expression in c#?

507


What is class method c#?

483