Explain what is class definition in c++ ?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between reference and pointer?
What is the difference between a baller and a reference in C++?
Does c++ have string data type?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.
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.
Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.
0 Answers An-Najah National University,
What is the difference between the functions rand(), random(), srand() and randomize()?
class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected
why we cant create array of refrences
Why do we use setw in c++?
Is recursion allowed in inline functions?
What is private, public and protected inheritance?