OOPS (Classes, Objects, Methods, Unified Modelling Language) Flashcards

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

What is a class?

A

A template for an object which defines its attributes and methods

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

What is an object?

A

An instance of a class

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

What is a constructor?

A

A method to create a new object in a class

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

What is instantiation?

A

Creating an instance of an object

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

What is polymorphism?

A

The ability of a programming language to process objects differently depending on their class

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

What is inheritance?

A

Inheritance is the procedure in which one class inherits the attributes and methods of another class. The class whose properties and methods are inherited is known as the Parent class.

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

What is encapsulation

A

It wraps the attributes and methods on the class definition, hiding details of the implementation from the user

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

What is an OOP?

A

Object-oriented programming (OOP) is a computer programming model that organizes software design around data, or objects, rather than functions and logic. An object can be defined as a data field that has unique attributes and behavior.

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