creating two methods with the same name and parameters but different return types
Class
template that describes the data and behavior associated
Object
instances of a class created to use their attributes
Attributes
the characteristics or properties of a class or object
Method
a block of code which when called performs specific actions mentioned in it
Instance
an object that is created using a class is said to be an instance of that class
Abstraction
refers to hiding the implementation details of a code and only showing the necessary information to the user
Encapsulating
refers to implementing code and variables into a single unit
Inheritance
allowing all methods and variables from one class to be accessed in another
Base class
the class from which the subclass is derived
Derived class
a class which inherits from a base class
Constructor
the block of code which initializes the state and value of an object during object creation
Polymorphism
the ability of objects to take on many forms
Method Overriding
occurs when a subclass has the same method as the parent class
Decomposition
breaking down large problems into smaller ones each with a method that defines a larger problem
Algorithm
sequence of finite steps designed to solve a specific problem
Information hiding
encapsulating data within a class and restricting access to specific components using access modifier
Static variable
the variable belongs to the class only ; not any instance of it
Static method
a method that belongs to a class rather than any instance of it
Final
a variable which cannot be changed
Protected
restricts the accessibility of the class to main class & sub class
Private
restricts access of elements to only the class where they are declared
toString
returns the string version of an object
Getter
gives access to an attribute in a given class
Setter
used to set the data of a class field to a variable
Studylib tips
Did you forget to review your flashcards?
Try the Chrome extension that turns your New Tab screen into a flashcards viewer!
The idea behind Studylib Extension is that reviewing flashcards will be easier if we distribute all flashcards reviewing into smaller sessions throughout the working day.