Definition of class?
Answers were Sorted based on User's Feedback
Answer / prabakaran
collection of data membetrs and function members
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / shivani sharma
class is a collection of data member and member function
| Is This Answer Correct ? | 1 Yes | 0 No |
What is a virtual destructor?
What is set in c++?
What do you know about near, far and huge pointer?
What are the conditions that have to be met for a condition to be an invariant of the class?
Explain the static member function.
Why do we use structure in c++?
Is c++ a good first language to learn?
Define friend function.
What is function overloading c++?
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.
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What do c++ programmers do?