Computer Programming 3

0.0(0)
studied byStudied by 72 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/38

flashcard set

Earn XP

Description and Tags

Midterm

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

39 Terms

1
New cards

Method

It is a group of statement that accomplishes a specific task. A name is given to it in order to call it.

2
New cards

Access modifier

Determines the access level or visibility of the method from another class.

3
New cards

Return type

Specifies whether the method returns a value or not.

4
New cards

MethodName

It is an identifier and case sensitive. It should always be followed by parentheses.

5
New cards

Parameter list

Refers to the required type, order and numb parameters of a method.

6
New cards

Parameters

These are used to pass and receive data from a method.

7
New cards

Method body

Contains a set of statements that performs the specific task of the method.

8
New cards

Method signatures

When the access modifier, return type, method name and any method parameters. When together it is called?

9
New cards

Arguments

When the method with a required values within the parentheses. These required values are called?

10
New cards

Method overloading

It means that methods of the same name can be declared in the same class as long as they have different sets of parameters.

11
New cards

Structures

These are used to make a single variable that holds related data of various data types.

12
New cards

struct

It is used for creating structure.

13
New cards

Class

It is a data structure or a blueprint that defines data and actions in a single unit.

14
New cards

Objects

It defines dynamically created instances of the class.

15
New cards

new

The instances of classes is created using this keyword which allocates memory for a new instance.

16
New cards

Encapsulation

It is a process of hiding data from the outside world.

17
New cards

private

Defining the modifier of class data members, like instance variables as this access modifier — This will make sure that data members of the class are not directly accessible form an object instance.

18
New cards

Properties

It use a pair of public mutator (set) and accessor (get) methods to manipulate private data members of a class.

19
New cards

return

Is used in the get accessor to return the value of the property.

20
New cards

value

Is used in set mutators represent the value being assigned to the property.

21
New cards

this

It refers to the object or the current instance of the class.

22
New cards

Constructor

It is a special method where its same as the name of its type (class or structure).

It is used to ensure the initialization of instance variables when an object is created.

23
New cards

Overloading Constructors

A class can have one or more constructors with same name as long as they have a different set of parameters.

These are useful in directly initializing instance variables and states with defined values to the objects at the time of creation.

24
New cards

Namespace

It provides a logical grouping to organize related classes, structures interfaces, and other types.

25
New cards

using

This keyword allows you to access the members of a namespace and must appear at the top of the program.

26
New cards

Inheritance

It is one of the principles of object-oriented programming that allows the defining of a child class that reuses or inherits the behavior of a parent class.

27
New cards

Protected

It is used to declare a protected member.

28
New cards

base

is used to specify which constructor from the base class should be invoked when creating instances of the derived class.

29
New cards

Method Overriding

It is redefining the functionality of an existing method.

30
New cards

Virtual Modifier

It specifies that a derived class can override the method in the base class.

31
New cards

Override Modifier

It is required to modify the abstract or virtual implementation of the inherited method and must have the same method signature as the overridden method.

32
New cards

Abstract Class

It is a base class that cannot be instantiated to create an object.

The purpose of this class is to provide an outline and class members that must be implemented to its derived classes.

33
New cards

abstract

Is used to declare an abstract class and is placed before the class name.

34
New cards

Abstract Methods

It is must be declared as a member of the abstract class.

It is a method header with an abstract modifier that has no implementation or method body, for its implementation is provided by overriding it on derived class.

35
New cards

Polymorphism

It is one of the fundamental concepts of object-oriented programming.

It enables classes to provide multiple methods with the same name but with different implementations or behavior.

36
New cards

Compile time polymorphism

This polymorphism is implemented using method overloading.

When a program is compiled, the compiler binds the appropriate method to the object based on the method’s arguments. This process is called early binding.

37
New cards

Runtime polymorphism

This polymorphism is a process in which the compiler determines which method to class during runtime. This process is also called late binding. This is achieve using method overriding.

38
New cards

Interface

It is only contains the signatures of methods, properties, and events as its members.

39
New cards

interface

This keyword use to defined interfaces.

Explore top flashcards

World Lit Midterm
Updated 1046d ago
flashcards Flashcards (25)
Vývinovka
Updated 506d ago
flashcards Flashcards (66)
Units 1-12 of Vocab
Updated 1052d ago
flashcards Flashcards (240)
BIO Final 2023
Updated 692d ago
flashcards Flashcards (159)
Chapter 2
Updated 777d ago
flashcards Flashcards (30)
World Lit Midterm
Updated 1046d ago
flashcards Flashcards (25)
Vývinovka
Updated 506d ago
flashcards Flashcards (66)
Units 1-12 of Vocab
Updated 1052d ago
flashcards Flashcards (240)
BIO Final 2023
Updated 692d ago
flashcards Flashcards (159)
Chapter 2
Updated 777d ago
flashcards Flashcards (30)