Rajesh Singh
Which of the following statements is correct about an interface used in C#.NET?A. If a class implements an interface partially, then it should be an abstract class. B. A class cannot implement an interface partially. C. An interface can contain static methods. D. An interface can contain static data. E. Multiple interface inheritance is not allowed.
By Rajesh Singh in .NET on Dec 24 2015
  • Vineet Kumar
    Dec, 2016 7

    B

    • 2
  • Riyas Rapposol
    Apr, 2017 12

    A. eg: public interface myinterface {void a();void b(); } public abstract class myclass : myinterface {public void a(){///do something}public abstract void b(); // keep this abstract and then implement it in child class }

    • 1
  • Tekesh Bisen
    May, 2017 7

    B. A class cannot implement an interface partially. The modifier 'static' is not valid in interface so there is no possibility for option D

    • 0
  • Shubham Prakash
    Jan, 2017 27

    Option B, Option D are correct

    • 0
  • Shubham Prakash
    Jan, 2017 27

    Option A, Option D are correct

    • 0
  • Vineet Kumar
    Jan, 2017 13

    A

    • 0
  • Keshav Chauhan
    Dec, 2016 26

    B

    • 0
  • Bineesh  Viswanath
    Jun, 2016 24

    B is correct, because the interface become abstract class only when all its methods is declared are abstract.

    • 0
  • Santosh Kumar
    May, 2016 31

    Abstract Class

    • 0
  • neeraj deshwal
    May, 2016 31

    B

    • 0
  • Naren
    May, 2016 25

    B. A class cannot implement an interface partially.

    • 0
  • Shivanand Baste
    Mar, 2016 23

    B.. class can not implement an interface partially.

    • 0
  • Anil Kumar Murmu
    Jan, 2016 13

    Option A, Option D are correct

    • 0
  • Rajesh Singh
    Dec, 2015 24

    Ans:A

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS