Type: Posts; User: gulHK
Search took 0.02 seconds.
December 19th, 2013, 06:30 AM
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...
September 21st, 2013, 01:12 PM
That's excellent 2Kaud .... THANK YOU SOOOO MUCH
September 21st, 2013, 09:30 AM
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
September 21st, 2013, 07:32 AM
2kaud Thank You Very Very much again for explaining it with an example and in detail.
September 21st, 2013, 06:18 AM
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...
September 20th, 2013, 09:05 AM
That's great. Thank you very much for explaining it with a practical example.
September 20th, 2013, 02:15 AM
Thank You Very Much Paul.
September 20th, 2013, 02:15 AM
Thank You Very Much 2Kaud.
September 19th, 2013, 03:59 PM
Thank You Very Much Paul. Please have a look at the questions/answers below
Obj1 and Obj2 are the Objects of the same class (type)
e-g if Object is the class name:
Object obj1 = new...
September 19th, 2013, 11:22 AM
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...
September 19th, 2013, 10:16 AM
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...
December 28th, 2012, 01:53 AM
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 :)
December 28th, 2012, 01:39 AM
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...
December 27th, 2012, 11:18 PM
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...
December 27th, 2012, 10:15 AM
Yes but are these not two different websites?
December 27th, 2012, 08:25 AM
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...
August 5th, 2012, 01:33 PM
Thanks D_Drmmr for this useful example :)
August 5th, 2012, 12:36 PM
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.
August 5th, 2012, 12:12 PM
The value of "cNancy" in both of the above cases is eventually equal to that of "cMark". Is this correct?
August 5th, 2012, 07:35 AM
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
August 5th, 2012, 07:00 AM
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...
August 5th, 2012, 06:17 AM
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...
August 4th, 2012, 02:56 PM
Thanks laserlight :). Virtual destructor concept is now clear to me
August 4th, 2012, 09:04 AM
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?
August 2nd, 2012, 09:19 AM
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
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.