GeekInterview.com
Series: Subject: Topic:
Question: 189 of 460

Which of the following statements is not true for interfaces

A) Interface definitions does not have implementation
B) Interfaces must be declared as public
C) Interfaces can be instantiated
D) Interface does not have constructors
Explanation: Interfaces can only be implemented by inheriting and they can not be instantiated
Asked by: Interview Candidate | Asked on: Jan 1st, 2006
Showing Answers 1 - 23 of 23 Answers
XYZ

Answered On : Jan 5th, 2006

A is the correct answer

Yes  2 Users have rated as useful.
  
Login to rate this answer.

Interfaces must always be declared as public so that they can be implemented or inherited

Yes  1 User has rated as useful.
  
Login to rate this answer.
samiksc

Answered On : Jan 9th, 2006

View all answers by samiksc

C is the correct choice

All statements are true except 'Interfaces can be instantiated'

Yes  2 Users have rated as useful.
  
Login to rate this answer.
Pan

Answered On : Jan 31st, 2006

C is correect answer. Interface can never be instantiated they should always be inherited so that member function should have implementation.

Yes  1 User has rated as useful.
  
Login to rate this answer.
sekhar

Answered On : Feb 24th, 2006

3 is

  
Login to rate this answer.
sekhar

Answered On : Feb 24th, 2006

3rd is the correct answer since interface has no implemtation they cannot be instiated

  
Login to rate this answer.
Naresh

Answered On : Apr 1st, 2006

A and D is right Answer

  
Login to rate this answer.
Guest

Answered On : Apr 20th, 2006

B and C are not true for Interfaces. Interfaces have abstract methods and members whose implementation is done in the derived class. By default all the methods in an Interface are public, so there is no need to explicitly use the public keyword with them. The complier will through a complie time error if we use.  

  
Login to rate this answer.
Prem Kumar Nanda

Answered On : May 9th, 2006

Question: which of the following statements is not true for interfaces

C) Interfaces can be instantiated

  
Login to rate this answer.
lal

Answered On : Jun 29th, 2006

Answers B & C

B. Interface members should be declared as public, not interfaces.

C. Interfaces can not be instantiated.

  
Login to rate this answer.
sairam

Answered On : Jan 28th, 2007

the variables intiated in the interfaces are implicitly a final variables .so your answer is wrong.

  
Login to rate this answer.
Rajesh K

Answered On : Feb 13th, 2007

A) Interface definitions does not have implementationB) Interfaces must be declared as publicD) Interface does not have constructorsThis are answer for the above questions

  
Login to rate this answer.
pankajbanga

Answered On : Feb 26th, 2007

View all answers by pankajbanga

Interface definition does not have implementation, they contain only signatures of methods, delegates or events.

Interface members are implicitly public, explicit modifiers are not allowed.

Interface cannot be instantiated directly

Interface cannot contain constructors

Interface cannot contain fields

Interface can itself inherit from multiple interfaces

  
Login to rate this answer.
Seeker911

Answered On : Jun 15th, 2011

View all answers by Seeker911

The answer is: B and C are not true for interfaces

  
Login to rate this answer.
Sivavt

Answered On : Apr 2nd, 2012

View all answers by Sivavt

(C) & (D) are wrong. Interface can be a type reference but cannot be instantiated. Interface cannot have constructor.

  
Login to rate this answer.
booltek

Answered On : Apr 26th, 2012

View all answers by booltek

Its letter C, interfaces can be instantiated

  
Login to rate this answer.
arun.12

Answered On : May 1st, 2012

View all answers by arun.12

C is not correct

  
Login to rate this answer.
govil

Answered On : Jul 11th, 2012

View all answers by govil

interfaces can only be implemented by inheriting and they can not be instantiated

  
Login to rate this answer.
Pradeepa

Answered On : Aug 8th, 2012

A. Interface definition does not have implementation

  
Login to rate this answer.
vpote

Answered On : Sep 2nd, 2012

View all answers by vpote

Interfaces can only be implemented by inheriting and they cannot be instantiated.

  
Login to rate this answer.
sjaiswal

Answered On : Sep 4th, 2012

Interface does not have constructors
Explanation: Interfaces can only be implemented by inheriting and they can not be instantiated.

  
Login to rate this answer.
michellext

Answered On : Sep 13th, 2012

View all answers by michellext

C) Interfaces can be instantiated

  
Login to rate this answer.
TheDentist

Answered On : Apr 23rd, 2013

View all answers by TheDentist

C is the correct answer. Interfaces dont have constructors so they cant be instantiated.

http://msdn.microsoft.com/en-US/library/vstudio/ms173156.aspx

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.