Midterm OOP - Lesson 4 Flashcards
Methods of Object Oriented Programming
Methods that are defined by the
Programming Language itself. It has a default arguments (names and functions).
Built – in Methods
Methods defined by the user. The
user can modify its arguments (names, functions and
parameters).
User – Defined Methods
An object that is one of the utility instrument in an object – oriented programming approach
Methods
Types of Polymorphism
Static Polymorphism and Dynamic Polymorphism
Also know as Compile Time Polymorphism
Static Polymorphism
Polymorphism that being resolved during compiler run
time or when the JVM started to work / function.
Static Polymorphism
Allows the user to have more than one method having the same name but differ in parameters inside a one class.
Method Overloading
WAYS TO OVERLOAD A METHOD
DATA TYPES OF PARAMETERS
NUMBER OF PARAMETERS
SEQUENCE OF DATA TYPES OF PARAMETERS
Also know as RunTime Polymorphism
Dynamic Polymorphism
Polymorphism that calls to the overridden methods that being resolved during run time. It always shows Inheritance principles.
Dynamic Polymorphism
Allows the parent class and child class to have more than one method having the same name and parameters.
Method Overriding