Download presentation
Presentation is loading. Please wait.
Published byRegina Washington Modified over 9 years ago
1
“everything is an object”
2
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
3
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)
4
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)
5
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
6
Abstraction OOP tries to hide details and complexity inside objects. Modular program development puts related actions together in functionally cohesive units Encourage reusability Dependability
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.