Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Object Creation and Class Instantiation

When I was reading the definition for Creational Design Patter in Wikipedia, have come across the following sentences.

Creational design patterns are further categorized into Object-creational patterns and Class-creational patterns. Where, Object-creational patterns deal with Object creation and Class-creational deal with Class-instantiation.

I was under the impression that Object Creation and Class Instantiation are one and the same. Are they same or Different? If they are different what will be the differences?

like image 475
Rajkumar Vasan Avatar asked Dec 23 '11 09:12

Rajkumar Vasan


1 Answers

Happen to visit the following linke Got the answer.

http://sourcemaking.com/design_patterns

While class-creation patterns use inheritance effectively in the instantiation process, object-creation patterns use delegation effectively to get the job done.

like image 63
Rajkumar Vasan Avatar answered Sep 25 '22 11:09

Rajkumar Vasan