1/38
Midterm
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
Method
It is a group of statement that accomplishes a specific task. A name is given to it in order to call it.
Access modifier
Determines the access level or visibility of the method from another class.
Return type
Specifies whether the method returns a value or not.
MethodName
It is an identifier and case sensitive. It should always be followed by parentheses.
Parameter list
Refers to the required type, order and numb parameters of a method.
Parameters
These are used to pass and receive data from a method.
Method body
Contains a set of statements that performs the specific task of the method.
Method signatures
When the access modifier, return type, method name and any method parameters. When together it is called?
Arguments
When the method with a required values within the parentheses. These required values are called?
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.
Structures
These are used to make a single variable that holds related data of various data types.
struct
It is used for creating structure.
Class
It is a data structure or a blueprint that defines data and actions in a single unit.
Objects
It defines dynamically created instances of the class.
new
The instances of classes is created using this keyword which allocates memory for a new instance.
Encapsulation
It is a process of hiding data from the outside world.
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.
Properties
It use a pair of public mutator (set) and accessor (get) methods to manipulate private data members of a class.
return
Is used in the get accessor to return the value of the property.
value
Is used in set mutators represent the value being assigned to the property.
this
It refers to the object or the current instance of the class.
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.
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.
Namespace
It provides a logical grouping to organize related classes, structures interfaces, and other types.
using
This keyword allows you to access the members of a namespace and must appear at the top of the program.
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.
Protected
It is used to declare a protected member.
base
is used to specify which constructor from the base class should be invoked when creating instances of the derived class.
Method Overriding
It is redefining the functionality of an existing method.
Virtual Modifier
It specifies that a derived class can override the method in the base class.
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.
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.
abstract
Is used to declare an abstract class and is placed before the class name.
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.
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.
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.
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.
Interface
It is only contains the signatures of methods, properties, and events as its members.
interface
This keyword use to defined interfaces.