Thread: Why did I get this question wrong?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Still A Registered User DISGUISED's Avatar
    Join Date
    Aug 2001
    Posts
    499

    Why did I get this question wrong?

    ok. First of all, there can be only one anwser to this question. The quesiton is.

    Question from my test.

    The reason for declaring a pure virtual function is:

    A. The function will always exsist in each of the derived classes.

    B. Each copy of the function is completely different in each of the derived classes.

    C. There is no common denominator between versions of the function in the derived classes.

    D. All of the above.

    E. None of the above.

    The anwser was D. I said B. I missed this because I was confused about A.

    Is it true, that if you don't overide the pure virtual function in a derived class, this class will just become abstract itself? Then you could derive other classes from this abstract and maybe enhance it with other pure virtual functions? Maybe I am wrong but I would like to argue this one because it cost me an A on the test.
    Last edited by DISGUISED; 01-30-2002 at 07:27 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Design layer question
    By mdoland in forum C# Programming
    Replies: 0
    Last Post: 10-19-2007, 04:22 AM
  2. Newbish Question file reading question....
    By kas2002 in forum C Programming
    Replies: 23
    Last Post: 05-17-2007, 12:06 PM
  3. General forum question - if in wrong forum...
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 05:00 AM
  4. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM
  5. Math Question, hard
    By Yoshi in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 12-08-2001, 11:58 AM