Object-oriented programming (OOPs) Question:
Download Job Interview Questions and Answers PDF
Can we call a base class method without creating instance?
Answer:
Yep. But ..
► Its possible If its a static method.
► Its possible by inheriting from that class also.
► Its possible from derived classes using base keyword.
► Its possible If its a static method.
► Its possible by inheriting from that class also.
► Its possible from derived classes using base keyword.
Download OOP Interview Questions And Answers
PDF
Previous Question | Next Question |
In which cases you use override and new base? | What is Abstract method? |