“everything is an object”
Class Template Code for defining an object Objects are created with NEW keyword (method) Namespace – (disambiguation) Context for identifiers.IO.Streamwriter namespace associates a user specified name with a specific file Visualbasic namespace includes legacy functions from VB 6
Object properties Attributes Color, size, shape, location Values associated with the object Range of possible values Boolean – True or False (.visible) Predefined set of choices (.borderstyle) Any user input that fits (.text)
Methods, Events Actions performed by an object Conversions, Casting (.toUpper) Create an object (.show) Events are methods triggered by user actions Clicking initiates the.click method Programmer specifies actions Actions defined for the class can be overridden in some cases (they are exposed)
Inheritance, Encapsulation Instance, Instantiation – create an object from a base class New objects created from an existing class definition take on (inherit) the characteristics of the base class Inheritance Public properties can be accessed (get or send values) through calls to the object Encapsulation Private properties contain actions and assignments internal to the object
Abstraction OOP tries to hide details and complexity inside objects. Modular program development puts related actions together in functionally cohesive units Encourage reusability Dependability