Introduction To Object Oriented Programming

Java OOPS - 10 Cards
Click here to toggle all cards
Object Oriented Programming
Focuses on objects and their interactions
Class
Defines a blueprint for creating objects that share common properties and behaviors
Object
An instance of a class that contains data and behavior defined by its class
State of Object
Refers to the current data values held by an object
Behaviour of Object
Refers to the actions that can be performed on an object
Encapsulation
The technique of combining data and code into a single unit, protecting the data from being accessed or modified directly from outside the unit
Getters
Methods used to retrieve the values of a class's private fields
Setters
Methods used to set the values of a class's private fields
Abstraction
The technique of hiding complex implementation details and presenting a simplified view to the user
Constructor
A special method that initializes objects when they are created