Explain the difference between c++ and java.
No Answer is Posted For this Question
Be the First to Post Answer
How would you represent an error detected during constructor of an object?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
Can non-public members of another instance of the class be retrieved by the method of the same class?
Write a C++ Program to Generate Random Numbers between 0 and 100
What is the handle class?
Is c++ vector dynamic?
What are static type checking?
Explain stack & heap objects?
When must you use a pointer rather than a reference?
What is new in c++?
What will i and j equal after the code below is executed? Explain your answer.
What are access specifiers in C++?