What is a class in java? Explain compared to a structure?

Showing Answers 1 - 1 of 1 Answers

neema

  • Jan 27th, 2006
 

compiled java program is in .class form. java programs are written using class. 

class in java supports encapsulation, polymorphism, abstractclass, virtual methods and static methods.

structures donot support these and it is used only to encapsulate different data types.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions