-
Inheritance
Which one of the following statements regarding C++ class inheritance is FALSE? a. Inheritance promotes generic design and code reuse.b. Struct cannot be inherited in C++. c. C++ supports multiple inheritance. d. Inheritance is a mechanism through which a subclass inherits the properties and behavior of its superclass.
-
Data Encapsulation
Which one of the statements concerning data encapsulation is FALSE? A. Data encapsulation lets the programmer create an object and then provide an interface that other objects can use to invoke the methods provided by that object. B. Programmers can change the internal working of an object, but this may be transparent as long as the interface remains unchanged. C. Data encapsulation works well for...
-
Register Relation
Why p++ is faster than p+1?
-
Deallocation of memory
When we allocates the memory using malloc() and calloc(), it returns pointer pointing to the base address to the allocated memory. But while freeing the memory we call free(pointer) thenHow the operation system knows that how much memory is about to be free.