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 a decimal in c#?

612


Do we get an error while executing the “finally” block in c#?

594


What are the 2 broad classifications of fields in c#?

626


What is the usage of Enumeration in C# Programming and is it good to use or not ?

626


Explain about generics in c#.net?

600






Can we inherit private class in c#?

583


Explain the differences between static, void and public in c#?

621


Why singleton is sealed?

559


How more than one version of an assembly can keep in same place?

594


List down the differences between “dispose” and “finalize” methods in c#.

528


In which way you can convert a value-type to a reference-type?

612


What is the relation between classes and objects?

606


What is as keyword in c#?

665


Why are strings in c# immutable?

584


Can we override interface methods in c#?

558