• +91 9723535972
  • info@interviewmaterial.com

OOP Interview Questions and Answers

Question - Is it always necessary to create objects from class?

Answer -

No. An object is necessary to be created if the base class has non-static methods. But if the class has static methods, then objects don’t need to be created. You can call the class method directly in this case, using the class name.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners