| Author |
How many object can a class have?
|
Sowm Herur
Ranch Hand
Joined: Jul 07, 2008
Posts: 32
|
|
How many object can a class have?
Why do we need to create more than one object of a class as we can only use one object to access different methods of a class?
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
|
|
In principle, infinitely many. In practice, as many objects as fit into the computer's memory.
To understand what classes and objects are and what the relation between a class and an object is, see Lesson: Classes and Objects in Sun's Java tutorials.
Also see the lessons in Object-Oriented Programming Concepts.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
 |
|
|
subject: How many object can a class have?
|
|
|