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 is unsigned int?

674


What's the c# syntax to catch any possible exception?

646


Can a struct inherit from another struct or class in c#?

684


What is the correct way of declaring an xml namespace?

628


What is the use of oops in c#?

665






What do you mean by string objects are immutable?

679


Is everything an object c#?

676


What is a singleton unity?

733


How is a strongly-named assembly different from one that isn’t strongly-named?

807


What is ienumerable and iqueryable?

672


What is inheritance in csharp?

673


In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?

790


What is the benefit of using interface in c#?

661


What is xml document how do you open it?

737


What is an indexer in c#?

722