How to differentiate between a CreateObject() and GetObject() ?
Answer / Amijeet Singh
"CreateObject()" and "GetObject()" are often used methods in Object-Oriented Programming languages, such as JavaScript or Java. The key difference lies in their functionality:n
1. CreateObject(): This method is responsible for creating a new instance of an object, typically by invoking the class constructor.
2. GetObject(): This method is utilized to retrieve an existing instance of an object from storage, a registry, or another data structure."
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference: 'uses', 'extends', 'includes'
7 Answers Cognizant, Protech, TY, University,
How a program can be structured using the concept of object oriented programming?
What is guard condition?
8 Answers Mannar Company, Syntel,
What is polymorphism? When is it employed? give an example.
How do I make sure that an object is released in code such as a connection or file object?
Can link and Association applied interchangeably?
When do you prefer to use composition than aggregation?
1 Answers InfoAxon Technologies, Protech,
Explain about abstraction?
What is a default method? Why do we need default methods in java 8 interfaces?
What is a functional interface? What is sam interface?
What is the function of pure virtual functions?
what are the different ways for a method to be overloaded?