Why can't we have instance(stack) of a class as a member of
the same class like eg.Class A{A obj;} as we can have self
refential pointer
No Answer is Posted For this Question
Be the First to Post Answer
What does and I oop mean?
Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3
3 Answers Accenture, Cognizant, IBM,
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is polymorphism? Explain with an example.
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
what is the main difference between sizeof() operator in c and c++
What are the data types in oop?
//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(); }
What is namespace?
What is inheritance and how many types of inheritance?
what is the diffrence between c# and c++
What is the real life example of polymorphism?