jagomart
digital resources
picture1_Programming Pdf 185993 | Introductionoopslajdovi


 137x       Filetype PDF       File size 0.14 MB       Source: www.tfzr.uns.ac.rs


File: Programming Pdf 185993 | Introductionoopslajdovi
introduction to object oriented programming objects and classes abstract data types adt encapsulation and information hiding aggregation inheritance and polymorphism oop introduction 1 pure object oriented languages five rules everything ...

icon picture PDF Filetype PDF | Posted on 01 Feb 2023 | 2 years ago
Partial capture of text on file.
   Introduction to Object-Oriented Programming
   • Objects and classes
   • Abstract Data Types (ADT)
   • Encapsulation and information hiding
   • Aggregation
   • Inheritance and polymorphism
 OOP: Introduction                                                    1
             Pure Object-Oriented Languages
   Five rules [Source: Alan Kay]:
   • Everything in an object.
   • A program is a set of objects telling each other what to do by 
      sending messages.
   • Each object has its own memory (made up by other objects).
   • Every object has a type.
   • All objects of a specific type can receive the same messages.
   Java breaks some of these rules in the name of efficiency.
 OOP: Introduction                                                        2
                        The Object Concept
   • An object is an encapsulation of data.
   • An object has 
        identity (a unique reference), 
        state, also called characteristics 
        behavior
   • An object is an instance of an abstract data type.
   • An abstract data type is implemented via a class.
 OOP: Introduction                                                                    3
                  Abstract Data Type (ADT)
   • An ADT is a collection of objects (or values) and a 
      corresponding set of methods.
   • An ADT encapsulates the data representation and makes data 
      access possible at a higher level of abstraction.
   • Example 1: A set of vehicles with operations for starting, 
      stopping, driving, get km/liter, etc..
   • Example 2: A time interval, start time, end time, duration, 
      overlapping intervals, etc.
 OOP: Introduction                                                             4
The words contained in this file might help you see if this file matches what you are looking for:

...Introduction to object oriented programming objects and classes abstract data types adt encapsulation information hiding aggregation inheritance polymorphism oop pure languages five rules everything in an a program is set of telling each other what do by sending messages has its own memory made up every type all specific can receive the same java breaks some these name efficiency concept identity unique reference state also called characteristics behavior instance implemented via class collection or values corresponding methods encapsulates representation makes access possible at higher level abstraction example vehicles with operations for starting stopping driving get km liter etc time interval start end duration overlapping intervals...

no reviews yet
Please Login to review.