Experimental Research on the Encapsulation of OOP in Java
The article analyzes the specific application of encapsulation in Object Oriented Programming(OOP)in Java and conducts experimental analysis.The experimental results show that the properties and methods in OOP can be represented using the Entity Relationship Diagram(ERD)model of the database,and the abstract OOP encapsulation can be well represented using Java encapsulation.Through verification using Java,the programming formulas for entity name as Java class name,attribute name as instance variable name,insert statement as input method,select statement as output method,and relation as processing method are obtained.The program running results are completely consistent with the formulas.