write a program to find 2^n+1 ?
No Answer is Posted For this Question
Be the First to Post Answer
create a c++ program that will ask 10 numbers and display their sum using array.
Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345
//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }
How to improve object oriented design skills?
In c++ there is only virtual destructors, no constructors. Why?
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
define oops with class and object
What is inheritance write a program to show use of inheritance?
We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ball with only 3 possible weighing attempts?
write a program which best describes polymorphism in real world?
2 Answers CTS, Infosys, NexGen,
Please send ford technologies placement paper 2 my mail id
why overriding?