Is swift better than c++?
No Answer is Posted For this Question
Be the First to Post Answer
What is a constructor and how is it called?
What is srand c++?
What does asterisk mean in c++?
Is ca high or low level language?
Difference between a homogeneous and a heterogeneous container
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What is the use of "new" operator?
Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class.
How to declare an array of pointers to integer?
why is iostream::eof inside a loop condition considered wrong?
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.
Differentiate between a constructor and a method in C++.