If we create a array of structures(structure must contain string field) we cannot store the data ny getting input from keyboard.Why?
What is the difference between function pointer and pointer to function?why we use static variable as a global instead of defining it a local?
Latest Answer: pointer to constant: If a pointer is pointing to constant it is called as pointer to constant.In this case we cannot change the content of constant.eg : const int n=5; int *p=&n;in this case we cannot change the value of n.constant pointer: ...
If I am declaring a private member in abstract class, although it will not be accessible in derived classes and can not be accessible by instantiating the abstract class. Then what is the optimal use of declaring private member in an abstract class.
Latest Answer: A friend function can access all private protected and public data of a class. A class has to declare a function or another class as a friend. Also the friendship is one way. Class A is friend of class B does not mean that class B is friend of class A. ...
Latest Answer: We can declare pure virtual destructor but need to specify its body.Class Base {~Base() = 0;}Base::~Base(){}Pure virtual destructor does the same thing which other virtual functions do, makes Base class abstract.I didn't find any other reason to make ...
Latest Answer: OOPs is closer to real life representation of the objects which we want to program.Hierarchical relationships can be represented using inheriatnce. Data can be divided as public and private -- also we can provide interface for entering and validating ...
Latest Answer: Realization is nothing but implementation of ABC or an Interface.class ABC{public: virtual virtual1() =0; virtual virtual2()=0;};class Implementation1:public ABC{public: virtual1(){}; virutal2(){};};The relationship b/w them is 'Realization'. It is denoted ...
Latest Answer: The programming techniuqe of replacing a member of a base class with a new member in a derived class.Shadowing differs from overriding in that base class's shadowed member is no longer available from the derived class ...
Latest Answer: By the use of BIOS coomands ..........Thanks ...
View page << Previous 1 2 3 4 [5] 6 7 8 9 10 Next >>

Go Top