COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
A template for an object that defines the state and behaviour of an object. An object is an instance of a class.
|
|
a variable, a data structure, a function, or a method, and as such, is a value in memory referenced by an identifier.
|
|
a procedure associated with a message and an object
|
|
a class is a specification that defines a property of an object, element, or file.
|
Detailed explanation-1: -In object-oriented terminology, a class is a template for defining objects. It specifies the names and types of variables that can exist in an object, as well as “methods"–procedures for operating on those variables. A class can be thought of as a “type", with the objects being a “variable” of that type.
Detailed explanation-2: -An instance of a class is an object. It is also known as a class object or class instance. As such, instantiation may be referred to as construction. Whenever values vary from one object to another, they are called instance variables. These variables are specific to a particular instance.
Detailed explanation-3: -A class is a template for creating a particular form of object.
Detailed explanation-4: -State of an object-The state or attributes are the built in characteristics or properties of an object. For example, a T.V has the size, colour, model etc. Behaviour of the object-The behavior or operations of an object are its predefined functions. For example, a T.V.
Detailed explanation-5: -An instance of a class is called object. The object has state and behavior.