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


INTERVIEW QUESTIONS J2EE JAVA DETAILS
Question :
What do you mean by virtual methods?
Category Java Interview Questions
Rating (3.2) By 11 users
Added on 10/13/2004
Views 3720
Rate it!
Answers:

Virtual methods are used to use the polymorhism feature in C++. Say class A is inherited from class B. If we declare say fuction f() as virtual in class B and override the
same function in class A then at runtime appropriate method of the class will be called depending upon the type of the object.



If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • 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
    Given two tables Student(SID, Name, Course) and Level(SID, level) write the SQL statement to get the name and SID of the student who are taking course = 3
    and at freshman level.
    View Answer
    What are the disadvantages of using threads?
    View Answer
    Write the Java code to declare any constant (say gravitational constant) and to get its value.
    View Answer
    What do you mean by multiple inheritance in C++ ?
    View Answer
    Can you write Java code for declaration of multiple inheritance in Java ?
    View Answer
    What are the Object and Class classes used for?
    View Answer
    What is Serialization and deserialization?
    View Answer
    What interface must an object implement before it can be written to a stream as an object?
    View Answer
    What is the ResourceBundle class?
    View Answer
    What class allows you to read objects directly from a stream?
    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 Java Interview Questions

    User Options
    Sponsored Links


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


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

    0.94
    Cache = 0 Seconds