Question
Consider the following C++ code: #include
class Base { public: virtual void show() = 0; }; class Derived : public Base { public: void show() override { std::coutSolution
o In C++, Base is declared with virtual void show() = 0;, which makes show() a pure virtual function. o Any class that contains one or more pure virtual functions is an abstract class. o Abstract classes cannot be instantiated directly. Attempting to create an object of an abstract class (like Base b;) will result in a compile-time error. The compiler will typically issue a message similar to "cannot declare variable 'b' to be of abstract type 'Base'" or "cannot instantiate abstract class 'Base'".
SBCF is related to RADG in a certain way. In the same way, NVMO is related to MUNP. To which of the following is GUAX related, following the same logic?
Statement:
A. Some leopards are buffaloes.
B. Some deer are mare.
C. All mare are fawn.
Conclusion:
(I) Some deer...
Examine the following statements:
1. All colours are pleasant.
2. Some colours are pleasant.
3. No colour is pleasant
4...
Which of the following does the “Caste Hierarchy” is breaking down?
Three of the following four word pairs are alike and thus form a group. Select the word pair that does NOT belong to that group.
In the following series, which of the options will correctly fit into the gap
ZA5, Y4B, XC6, W3D, _____
In a certain code, CHANDIGARH is written as DNACHRAGI. How is SIKKIM written in that code?
In a certain code language, 'BELL' is written as 'MKFA' and 'BOND' is written as 'EMPA'. How will 'BLEW’ be written in that language?
Select the option that is related to the fifth letter-cluster in the same way as the fourth letter-cluster is related to the third letter-cluster and th...
In this question, a question is followed by two statements numbered (I) and (II). You have to decide whether the data provided in the statements are suf...