Which of the following is true about objects and/or classes in a database?
- A class encapsulates only data
- A class is an instance of an object
- An object encapsulates only data
- An object is an instance of a class
EXPLANATION
An object is an instance of a class, and may be called a class instance or class object; instantiation is then also known as construction.
Not all classes can be instantiated – abstract classes cannot be instantiated, while classes that can be instantiated are called concrete classes.
0 comments:
Post a Comment