91
GB
What is the output: class A{public:virtual void f()=0;}; class B:public A{public:void f()override{cout<<'B';}}; auto make=[]()->unique_ptr{return make_unique();}; auto p=make(); p->f();
IN
आउटपुट क्या है: क्लास ए{पब्लिक:वर्चुअल वॉयड f()=0;}; कक्षा बी:सार्वजनिक ए{सार्वजनिक:शून्य एफ()ओवरराइड{काउटफ();
A
B
बी
B
Compile error
संकलन त्रुटि
C
Undefined
अपरिभाषित
D
A
ए
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
B::f()=B. Output: B.
व्याख्या (हिन्दी)
बी::एफ()=बी. आउटपुट: बी.