Why interface is used?
No Answer is Posted For this Question
Be the First to Post Answer
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; wow *b; a.x = 22; b = &a; a.x = 23; cout << b->x; return 0; }
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.
In c++ there is only virtual destructors, no constructors. Why?
What is difference between inheritance and polymorphism?
Can private class be inherited?
Tell us about yourself.
47 Answers ABB, Amazon, Fidelity, Flextronics, Franklin Templeton, HCL, Hexaware, IBM, Impetus, Infosys, Reliance, Rofous, Silgate, Sutherland, TCS, Thomson Reuters, Virtusa, Wipro,
how can we design a magic square in c++?or suggest me the basic idea of it.
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram
JAVA is FULLY OBJECT ORIENTED PROGRAMING LANGUAGE?
How is polymorphism achieved?