Object-oriented programming: Difference between revisions

Content deleted Content added
Line 158:
==== Class-based ====
 
In [[class-based programming]], the most common type of OOP, every object is an [[instance (computer science)|instance]] of a specific ''class''. The class defines the data format, like variables (e.g., name, age) and methods (actions the object can take). Every instance of the class has the same set of variables and methods. Objects are created useusing a special method in the class known as a [[Constructor (object-oriented programming)|constructor]].
 
Here are a few key terms in class-based OOP: