How do we declare an ‘interface’ class?

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
How do we declare an ‘interface’ class?

1. By making all the methods pure virtual in a class

2.By making all the methods abstract using the keyword ‘abstract’ in a class

3.By declaring the class as interface with the keyword ‘interface’

4.It is not possible to create interface class in C++

Posted Date:-2021-02-19 18:52:00


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!