Advertisements
Advertisements
प्रश्न
Why is a class called an object factory?
संक्षेप में उत्तर
उत्तर
Class is the prototype of an object. Each object belonging to a specific class possesses the data and functions defined within the class. It also produces the objects of similar type. Hence, a class is termed as an object factory.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?