Latest Answer: The answer is when instantiating an object compiler needs a correct object type. If the constructor is declared virtual then the the object type can not be resolved at compile time, and that's why it is not possible to declare a constructor as virtual. ...
Write a c++ program to accept three digits (i.e 0-9)and print all possible combinations fro these digits.(for exanple if the three digits are 1,2,3 then all possible combinations are 123,132,231,213,312,321 etc)
Latest Answer: ENCAPSULATION: It is the data binds together code and the data it manipulates and keeps them safe from outside interference and misuse. When data and code are linked together in this fashion, an object is created. In other words an object is the device ...
Latest Answer: AN UN ASSIGNED OBJECT IS CALLED WILD OBJECT byyDEEPAK(TCS) ...
Latest Answer: Encapsulation is wrapping up the data into a single unit (classes).Abstraction is something like data Hiding. ...
Latest Answer: OOPs is Object Oriented Programming.The great thing about OOPs is that is all about classes and objects which can easily correlated with real life scenarios.Class is the general thing and object is the specilisation of general thingFor example if ...
What is meant by macros?how it works?what is the out put of the program#define sqr(x) x*xvoid main(){ int a,b=3;a=sqr(b+2);cout
Latest Answer: Demerits :
i) Compilation time
ii) Run time errors
Merits:
i) Real world entity ...
Please give me clear idea about these following declaration.const char *q="hello";*q='m';/*error*/q="bye";char const *s="hello";*s='m';/*error*/s="bye";char *const t="hello";*t='m';/*works*/t="bye";/*error*/
View page << Previous 1 2 [3] 4 5 6 7 8 9 10 Next >>

Go Top