What is an object in c++?
Answer / nashiinformaticssolutions
Real-world entities with a state (some type of data) and behavior (functionality) are called objects. A class consists of connected things.
| Is This Answer Correct ? | 0 Yes | 0 No |
Do you need a main function in c++?
#include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return 1; } } }
What is the basic of c++?
What is the return value of the insertion operator?
Define a conversion constructor?
What are class and object in C++?
What is long in c++?
What does flush do c++?
How do you initialize a string in c++?
What is a string example?
What are disadvantages of pointers?
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.