• +91 9723535972
  • info@interviewmaterial.com

OOP Interview Questions and Answers

Question - What is the difference between a class and a structure?

Answer -

Class: User-defined blueprint from which objects are created. It consists of methods or set of instructions that are to be performed on the objects.

Structure: A structure is basically a user-defined collection of variables which are of different data types.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners