What is the Advantage of Interface over the Inheritance in
OOPS?
Answer Posted / rajendra patidar
On OOPS due to multiple inheritance duplicate value may be
received by derived class, so compiler do not understand
what syntax should compile.
Interface Refuse such type of problem in java.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Can we override main method?
What is the diamond problem in inheritance?
write a C++ program for booking using constructor and destructor.
What are the 3 pillars of oop?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is cohesion in oop?
Why is there no multiple inheritance?
What is polymorphism and its types?
what is the sylabus for priliminaries?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
Why do we use polymorphism in oops?
What is class in oop with example?
What are benefits of oop?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Why is encapsulation used?