Paper 2 Knolwedge Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a CLASS?

A

An extensible program-code-template for creating
objects, providing initial values for states (variables) and
implementations of behaviours

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an OBJECT?

A

Refers to a particular instance of a class, where
the object can be a combination of variables or data
structures (called states) and functions, procedures or
methods (called behaviours)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is DECLARATION?

A

A variable declaration with a variable name
with an object type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is INSTANTIATION?

A

The process of turning a class to an object

The ‘new’ key word is used to create the
object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is INITIALIZATION?

A

The ‘new’ keyword is followed by a call to a
constructor. This call initializes the new object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the DISADVANTAGES of OOP?

A
  1. Increased complexity for small problems
  2. Unsuited to particular classes of problems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does STATIC mean?

A

The keyword ‘STATIC’ means you don’t need to create an object to use the method

It is used for a constant variable or method that is the same for every instance of a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly