OOPs Concepts
Programming and Technical
Programming
Definition
Which one is correct to declare an interface in a class?
-By making all the methods pure virtual in a class
-By making all the methods abstract using the keyword abstract in a class
-By declaring the class as interface with the keyword interface
-It is not possible to create interface class in C++
Read Solution (Total 4)
-
- c++ does not support interfaces
but to demonstrate we can go for second option
b) By making all the methods abstract using the keyword abstract in a class - 11 years agoHelpfull: Yes(2) No(0)
- c++ do not support interfaces
- 10 years agoHelpfull: Yes(1) No(1)
- It is not possible to create interface class in C++
- 9 years agoHelpfull: Yes(1) No(0)
- -by making all functions as pure virtual functions.
- 4 years agoHelpfull: Yes(1) No(0)
OOPs Concepts Other Question