Clases
Classes
class syntax: add another level of functionality and type of programming called Object-Oriented programming. We can create objects, a class with internal attributes, functions and any other of characteristics and then create multiple instances. Organize your code based on object, these objects can relate to one another with inheritance, add or remove information/characteristics though functions and actually exhibit polymorphism.
Polymorphism
is the ability to create one object or class that can exhibit multiple characteristics and commonly respond to similar functions. Class can describe geometry -ie a surface is an object with curvature, centroid, number of u and v, point, etc. also ask for information about surface based on functions embedded within the class and create your own types of objects like 'connection' or 'apertures'.
Class can be nested, have multiple function privacy, modularity.
Última actualización
¿Te fue útil?