Java Programming basic part 2 - CS201 Principles of Object...

Info icon This preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CS201: Principles of Object Oriented Programming Lecture 2
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 Today’s Topics Continue Discussion on Basic Concepts of Object Orientation Strengths of Object Orientation
Image of page 2
3 Basic Concepts Of Object Orientation Object Class Attributes Operation Interface (Polymorphism) Components Package Subsystem Relationships
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4 What is Polymorphism? The ability to hide many different implementations behind a single interface Manufacture A Manufacture B Manufacture C OO Principle: Encapsulation
Image of page 4
5 What is an Interface? A named set of operations that characterize the behavior of an element. Interface formalize polymorphism <<interface>> Polygon scale move rotate draw Triangle Square Pentagon
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
6 What is an Interface? An interface provides a collection of operations that are used to specify a service of a class or a component.
Image of page 6
7 What is a Component? A non-trivial, nearly independent, and replaceable part of a system that fulfills a clear function in the context of a well- defined architecture
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
8 What is a Component?(Cont.) Source File Name <<EXE>> Executable Name <<DLL>> Component Name A component may be A source code component A run time component or An executable component
Image of page 8
9 Source Code Coponents Visualize compilation dependencies between source code files Account.h Report.cpp Account.cpp
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
10 Executable and Run-time Components Visualizing all of the pieces of an executable release, their interfaces, and their relationships <<EXE>> ATM Bank <<DLL>> Account Iaccount Ibank
Image of page 10
11 What is a Package?
Image of page 11

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern