Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
Oops
« Previous
Next »
There is no difference between an object and an instance.
Options
- False
- True
CORRECT ANSWER : False
Discussion Board
Are they different: object and an instance.
Answer: They are same.
It''s a humble request, do not post unrelated things like the definition of class. Be focused on the question.
Jai Patel 09-6-2020 02:14 AM
subtle difference
They are different. Instance refers to concrete code of certain class in the memory, while the object refers to combination of code and states/data in memory.
For example, considering a C++ class template with no data member and no virtual member function. The instance was created in TEXT segment after template instantiation and class instantiation at compile time. However there is no object of this class created. The literal name of the class variable refers to the class instance instead of class object. When you assign the name to another variable, there is nothing to be changed in the memory but creating a Alias of the instance.
Yang 12-2-2017 02:54 AM
object vs instance
object is a copy of the class and instance is a variable that hold the memory address of an object
Leena 11-12-2017 02:13 AM
Ojbects and instances
both are same you given answer is incorrect
Tahir Nawaz 10-2-2017 02:38 PM
Object vs. instances
An object is a software bundle of related state and behavior. An instance is a single and unique unit of a class. A class is a blueprint or prototype from which objects are created.
career 06-13-2014 02:50 AM
Objects and instances
Do a search on the web. Most developers, including myself, use the words interchangeably. An instance of a class is an object. The only difference I can identify is that object has 6 letters, and instance has 8. Stop trying to confuse people and get on with more important questions!!
gds 06-12-2014 07:44 AM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
C test (42)
C (12)
C++ for beginners (10)
C++ (20)
C++ (24)
C++ (18)
C++ (14)
C++ (12)
C++ (15)
C++ (15)
Data structure (20)
Data structure (10)
Data structure (10)
Data structure (10)
PERL (25)
VC++ (11)
Oops (30)
Mainframe (41)
Mainframe (15)
Embedded systems (15)
OOAD (49)
Advertisement
▲