Posts

Showing posts with the label types of members in class

Static and Dynamic Memory Allocation in JAVA

In JAVA the class contains two types of things within it which are                                                                1. Data Members                        2. Member Functions or Methods Since Data Members represent the properties of the objects and the Methods or functions within a class represent the behavior of the object of class type.     object is the entity which can have the Data Members and Methods of the class . lets consider we have a class which is as follow:                         class  Student{                                 String name;          ...