How do we declare an ‘interface’ class? | CPP MCQs

A. By making all the methods pure virtual in a class
B. By making all the methods abstract using the keyword ‘abstract’ in a class
C. By declaring the class as interface with the keyword ‘interface’
D. It is not possible to create interface class in C++

Answer: A

1 comments:

Unknown said...

Hello There,


I genuinely do look forward for the time where you post some new write ups. Your blog make me feel so educated! Continue soaring and writing please.

write a programme that reads standard input and prints the characters greater than 40

But nice Article Mate! Great Information! Keep up the good work!


Thanks and Regards,
Irene

Post a Comment

Blogger news