On Feb 26, 12:50 am, Anton Shaykin <[email protected]> wrote:
> Really. Why do we create empty instances for every class, like this:
>
> public class StudentRecord {
>
This is a constructor. It is used to create an instance of an object.
Like:
StudentRecord sang=new StudentRecord();
> /** Creates a new instance of StudentRecord */
> public StudentRecord() {
> }
>
> }
>
> Does it make sense at all? What's the need to do it?
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---