Question: Which of the following is the correct way to implement the interface given below?
Options
A : class Employee : IPerson { private String str; public String FirstName { get { return str; } set { str = value ; } } }
B : class Employee { private String str; public String IPerson.FirstName { get { return str; } set { str = value ; } } }
C : class Employee : implements IPerson { private String str; public String FirstName { get { return str; } set { str = value ; } } }
D : None of the above
Previous ||
Interfaces - General Questions more questions
Which of the following is the correct implementation of the....
Which of the following statements is correct?
Which of the following statements are correct about an interface....
Which of the following can implement an interface?
Which of the following statements is correct about the C#.NET....
If a namespace is present in a library then which....
Which of the following is NOT a namespace in the....
Which of the following statments are the correct way to....
Which of the following statements is correct about a namespace....
Which of the following is absolutely neccessary to use a....
Attributes - General Questions more Online Exam Quiz
Enumerations - General Questions
Exception Handling - General Questions
Functions and Subroutines - General Questions
Inheritance - General Questions
Namespaces - General Questions
Polymorphism - General Questions