CoolInterview.com - World's Largest Collection of Interview Questions
 Interview Questions  
 Our Services  

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!


    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS MICROSOFT C# DETAILS
    Question :
    Is it mandatory to implement all the methods which are there in abstract class if we inherit that abstract class..?


    Category C# Interview Questions
    Rating (0.0) By 0 users
    Added on 7/28/2006
    Views 1495
    Rate it!
    Answers:

    No only function marked as abstract shoud be implemented.the following code runs fine abstract public class base class { public abstract void method1(); public void method2(){Console.WriteLine("Base Method 2");} } public class derivedclass:baseclass { public override void method1(){Console.WriteLine("Derived Method 1");} //public override void method2(){Console.WriteLine("Derived Method 1");;} }



    No,an abstract class can contain both abstract as well as general method.so
    the methods which are abstract,these are mandatory to implement.



     Posted by: Munindra kumar sahoo    

    Contact Munindra kumar sahoo  Contact Munindra kumar sahoo


    If you have the better answer, then send it to us. We will display your answer after the approval.
    Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer


    What is the difference between const and static read-only?



    View Answer
    How to fill datalist usinf XML file and how to bind it,code behind language is c#

    View Answer
    WHAT IS THE ADVANTAGE OF SERIALIZATION?

    View Answer
    How we hand sql exceptions? What is the class that handles SqlServer exceptions?

    View Answer
    What is indexer? where it is used plz explain

    View Answer
    can we inherit the java class in C# class,how?

    View Answer
    We declare an integer variable 'x' in C# as

    View Answer
    A code block in C# is enclosed between

    View Answer
    To read user input from the console, the following statement is used

    View Answer
    The following is a correct call to the Main() function

    View Answer

    Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

    Notify me when better answer is posted!
    Email:

    View ALL C# Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2009 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions
    Page URL: http://www.coolinterview.com/interview/9092/default.asp?cachecommand=bypass


    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | Joke of the Day

    0.92