0% found this document useful (0 votes)
32 views8 pages

Oop Notes

The document defines key programming terms like static, void, private, protected, public, class, object, method, constructor, polymorphism, encapsulation and more. It provides short descriptions of each term to concisely explain common object-oriented programming concepts.

Uploaded by

viggotudo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views8 pages

Oop Notes

The document defines key programming terms like static, void, private, protected, public, class, object, method, constructor, polymorphism, encapsulation and more. It provides short descriptions of each term to concisely explain common object-oriented programming concepts.

Uploaded by

viggotudo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Definitions

● Static: A keyword used to indicate that a particular field or method


belongs to the class, rather than instances of the class. This means
the static member can be accessed without creating an instance of the
class.

● Void: A keyword used to declare that a method does not return any
value.

● Private: An access modifier that restricts visibility of fields, methods,


and constructors to the same class only, making them inaccessible
from other classes.

● Protected: An access modifier that allows visibility of fields, methods,


and constructors to the same package or subclasses, providing more
accessibility than private but less than public.

● Public: An access modifier that grants visibility to fields, methods, and


constructors from any other class, making them the most accessible
level.

● Class: A blueprint for creating objects (a particular data structure),


providing initial values for state (member variables or attributes), and
implementations of behavior (member functions or methods).

● Object: An instance of a class. Each object has a state and behavior


as defined by its class.

● Method: A function defined inside a class that describes the behaviors


of the objects of that class.

● Constructor: A special method in a class that is called when an object


of that class is instantiated. Constructors have the same name as the
class and may be overloaded.

● Polymorphism: The ability of an object to take on many forms. In


programming, it allows methods to do different things based on the
object that it is acting upon, even with the same name.

● Encapsulation: The practice of keeping fields within a class private,


then providing access to them via public methods. It’s a protective
barrier that keeps the data and the code safe within the class itself.

● Identifier: A name used to identify a variable, method, class, or other


programming entities.

● Object Reference: A variable that contains the memory address of an


object, allowing for access to the object.

● Object Instantiation: The process of creating an instance of a class.

● Attribute: A variable or method associated with a class or object.

● Method: An independent block of code that performs a specific


function and returns an output based on given inputs.

● Method Signature: Includes the method name and its parameters;


typically the first line of the method declaration.

● Mutator Method (Setter): A method designed to set or modify the


state of an object.

● Accessor Method (Getter): A method used to access the state of an


object without modifying it.

● Method Overriding: A feature that allows a subclass to provide a


specific implementation of a method that is already defined in its
superclass.

● Method Overloading: A feature that allows a class to have more than


one method with the same name, but different method signatures.

You might also like