Difference between class and struct?

I learnt C at first and then Java. In C I learnt struct. In C++ and Java I am learning class. Is there a difference between class and struct?

  • Rahul
  • 21 जुलाई
  • 4733 दृश्य
  • 1 उत्तर
Your Answer

yes there is a difference between structure and class that is .......struct is basically used to store/declare the variables of different types of data.but in java class is a main part where which contains main() function from there program gets start executing

0
c plus plus programming
मॉक परीक्षण अभ्यास के लिए
c plus plus programming