Classes(Engineering > Computer Science And Engineering > C++ Language ) Questions and Answers
Explanation:-
Answer: Option A. -> public If we invoked the interface as public means, We can access the program from other programs also.
Explanation:-
Answer: Option C. -> 3 There are three types of classes. They are abstract base classes, concrete derived classes, standalone classes.
Explanation:-
Answer: Option A. -> Overriding refers to a derived class function that has the same name
and signature as a base class virtual function. Overriding refers to a derived class function that has the same name
and signature as a base class virtual function.
Explanation:-
Answer: Option B. -> 2
Class hierarchies promote reuse in two ways. They are code sharing and interface sharing.
Explanation:-
Answer: Option A. -> Separation of interface from implementation Separation of interface from implementation
Explanation:-
Answer: Option B. -> Classes express functionality which represent responsibilities. A class that expresses functionality rather than its primary design role is called a mixin.
Explanation:-
Answer: Option A. -> Standard error stream cerr is an object of class ostream that represents the standard error stream. It is associated with the cstdio stream stderr.
Explanation:-
Answer: Option A. -> Standard logging stream clog is an object of class ostream that represents the standard logging stream. It is associated with the cstdio stream stderr, like cerr.
Explanation:-
Answer: Option C. -> Both a & b We can make user-defined types with streams by overloading the insertion operator () to read objects from streams.
Explanation:-
Answer: Option C. -> 3 There are three types of guarantees in c++. They are weak, strong and no-throw.