What problem does the namespace feature solve?
Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The... Read more »
Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The... Read more »
Template class:-A generic definition or a parameterized class not instantiated until the client provides the needed information. It’s jargon for plain templates. Class... Read more »
A name clash occurs when a name is defined in more than one place. For example., two different class libraries could give two different classes the same name. If... Read more »
A dangling pointer arises when you use the address of an object after its lifetime is over. This may occur in situations like returning addresses of the automatic... Read more »
Message:- Objects communicate by sending messagesto each other.A message is sent to invoke a method. Method:- Provides response to a message.It is an implementation... Read more »
A class invariant is a condition that defines all valid states for an object. It is a logical condition to ensure the correct working of a class. Class invariants... Read more »
Precondition:-A precondition is a condition that must be true on entry to a member function. A class is used correctly if preconditions are never false. An operation... Read more »
If two base classes have no overlapping methods or data they are said to be independent of, or orthogonal to each other. Orthogonal in the sense means that two classes... Read more »
A container class is a class that is used to hold objects in memory or external storage. A container class acts as a generic holder. A container class has a predefined... Read more »
An abstract class is a protocol class if:- It neither contains nor inherits from classes that contain member data, non-virtual functions, or private (or protected)... Read more »
A handle is a class that maintains a pointer to an object that is programmatically accessible through the public interface of the handle class. Explanation:In case... Read more »
A template is a parameterized construct or type containing generic code that can use or manipulate any type. It is called parameterized because an actual type is... Read more »
Deep copy involves using the contents of one object to create another instance of the same class. In a deep copy, the two objects may contain ht same information... Read more »
The ‘is-a’ is called a reflexive association because the reflexive association permits classes to bear the is-a association not only with their super-classes... Read more »
An inline function is a request and not a command. Hence it won’t be compiled as an inline function always. Explanation:Inline-expansion could fail if the inline... Read more »
A smart pointer is an object that acts, looks and feels like a normal pointer but offers more functionality. In C++, smart pointers are implemented as template classes... Read more »
Deep copy involves using the contents of one object to create another instance of the same class. In a deep copy, the two objects may contain ht same information... Read more »
A method in Input Stream.It reads a single byte or an array of bytes.Returns no of bytes read or -1 if EOF(End of file)is reached Read more »
Both at compile and runtime. Read more »
A class which cannot be Instantiated. Read more »