Object-Oriented Programming: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
{{Internal|Object-Oriented Programming vs Functional Programming|Object-Oriented Programming vs Functional Programming}} | {{Internal|Object-Oriented Programming vs Functional Programming|Object-Oriented Programming vs Functional Programming}} | ||
=Class= | |||
A class represents a type of thing and concept. Classes defines state - what kind of information, or attributes they can store. Classes also define behavior, or methods. | |||
=Objects= | |||
An object is a specific instance of a [[#Class|class]]. | |||
=Inheritance= | =Inheritance= |
Revision as of 06:56, 26 February 2021
Internal
Overview
Object-Oriented Programming vs Functional Programming
Class
A class represents a type of thing and concept. Classes defines state - what kind of information, or attributes they can store. Classes also define behavior, or methods.
Objects
An object is a specific instance of a class.
Inheritance
Organizatorium
Object-oriented programming is first and foremost about message passing.