In programming languages such as c c c Answer the followin
In programming languages such as c / c++ / c#
Answer the following
1. The fields of a class :
A) are the variables that are defined at the class level
B) must be instance variables
C) must be reference types
D) must be value types
2. Two objects created from the same class can have different:
A) Fields
B) Methods
C) Data
D) properties
Solution
1.The fields of a class are the variables that are defined at the class level.For eg: A class representing an employee will have various fields like employee number, employee name etc.
2. Two objects created from the same class can have different data.an object is a self-contained component that contains properties and methods needed to make a certain type of data useful.Thus the data given to the object can be completely different from each other.
