CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: gulHK

Page 1 of 7 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    698

    Online Test Questions

    Hello everyone

    Could somebody please help me with the correct answers of the following questions asked during an online test? I don't remember the exact code for every question hence am writing...
  2. Replies
    27
    Views
    31,873

    Re: Online C++ Test Questions

    That's excellent 2Kaud .... THANK YOU SOOOO MUCH
  3. Replies
    27
    Views
    31,873

    Re: Online C++ Test Questions

    Thank you all very much

    I know that the ## (double number sign) operator concatenates two tokens in a macro invocation e-g


    #define ArgArg(xyz, abc)
    xyz ## abc...
  4. Replies
    27
    Views
    31,873

    Re: Online C++ Test Questions

    2kaud Thank You Very Very much again for explaining it with an example and in detail.
  5. Replies
    27
    Views
    31,873

    Re: Online C++ Test Questions

    Hello everyone

    Could anyone please help me with this online interview question?



    Object1 and Object2 are the names of two different classes.
    The Class Object2 has one Object and the Class...
  6. Replies
    27
    Views
    31,873

    Re: Online C++ Test Questions

    That's great. Thank you very much for explaining it with a practical example.
  7. Replies
    27
    Views
    31,873

    Re: Online C++ Test Questions

    Thank You Very Much Paul.
  8. Replies
    27
    Views
    31,873

    Re: Online C++ Test Questions

    Thank You Very Much 2Kaud.
  9. Replies
    27
    Views
    31,873

    Re: Online C++ Test Questions

    Thank You Very Much Paul. Please have a look at the questions/answers below

    4)
    Obj1 and Obj2 are the Objects of the same class (type)
    e-g if “Object” is the class name:
    Object obj1 = new...
  10. Replies
    27
    Views
    31,873

    Re: Online C++ Test Questions

    Hello Paul. Below are my answers.

    Thanks and Regards

    1) Can we call virtual function from non-virtual function? YES

    2) Can we call pure virtual function from constructor? NO (Read this...
  11. Replies
    27
    Views
    31,873

    Online C++ Test Questions

    Hello Everyone, I recently gave an online C++ test. Below are few of the questions I need help with. Could anyone please explain to me the correct answers?

    1) Can we call virtual function from...
  12. Thread: import package

    by gulHK
    Replies
    10
    Views
    3,588

    Re: import package

    I have just tried the program without the .class files and copying only the .java ones and it worked. You were right and thanks a ton for that :)
  13. Thread: import package

    by gulHK
    Replies
    10
    Views
    3,588

    Re: import package

    Hello Phillp

    I have copied the .java classes into my project and it works fine. I do not need to import them any more. But I still cannot use the .class files and it gives me the same error. This...
  14. Thread: import package

    by gulHK
    Replies
    10
    Views
    3,588

    Re: import package

    Thank you Phillip

    The package "pack" is just a folder containing files with .java and .class extensions. We are asked to create a program that contains four classes which should use the files...
  15. Thread: import package

    by gulHK
    Replies
    10
    Views
    3,588

    Re: import package

    Yes but are these not two different websites?
  16. Thread: import package

    by gulHK
    Replies
    10
    Views
    3,588

    import package

    Hello all

    I am a student and I am new to Java. I have created a simple Java program. We have been given a package to import into the program we have developed. The classes of the package are...
  17. Replies
    51
    Views
    7,981

    Re: Interview Questions

    Thanks D_Drmmr for this useful example :)
  18. Replies
    51
    Views
    7,981

    Re: Interview Questions

    I am sorry for being silly Paul and Laserlight.

    I think I need detailed study to fully understand the concepts. Any way thanks a lot.
  19. Replies
    51
    Views
    7,981

    Re: Interview Questions

    The value of "cNancy" in both of the above cases is eventually equal to that of "cMark". Is this correct?
  20. Replies
    51
    Views
    7,981

    Re: Interview Questions

    That's what's written in one of the websites



    Cents cMark(5); // calls Cents constructor
    Cents cNancy; // calls Cents default constructor
    cNancy = cMark; // calls Cents assignment operator
    ...
  21. Replies
    51
    Views
    7,981

    Re: Interview Questions

    Paul I know which one uses copy constructor and which one uses assignment but what are the uses of each of these two ways? why not we just always use a copy constructor or why not always an...
  22. Replies
    51
    Views
    7,981

    Re: Interview Questions

    I have now gone through few of the websites to clear my concepts about copy constructor and assignment and have found out that these are just two different ways that serve the same purpose, one...
  23. Replies
    51
    Views
    7,981

    Re: Interview Questions

    Thanks laserlight :). Virtual destructor concept is now clear to me
  24. Replies
    51
    Views
    7,981

    Re: Interview Questions

    Thank you all

    I still have few confusions.

    1) If any of the functions of the base class is virtual then destructor should also be virtual. What will happen if destructor is not virtual?

    2)...
  25. Replies
    51
    Views
    7,981

    Interview Questions

    Hello All

    Below are the few questions that were asked in an interview. Can anyone please explain to me the answers in an easiest way with examples.


    1) Volatile object
    3) Can...
Results 1 to 25 of 161
Page 1 of 7 1 2 3 4





Click Here to Expand Forum to Full Width

Featured