Presentation is loading. Please wait.

Presentation is loading. Please wait.

Objects First with Java A Practical Introduction using BlueJ

Similar presentations


Presentation on theme: "Objects First with Java A Practical Introduction using BlueJ"— Presentation transcript:

1 Objects First with Java A Practical Introduction using BlueJ
David J. Barnes Michael Kölling Replace this with your course title and your name/contact details. 3.0 © David J. Barnes and Michael Kölling

2 Objects First with Java
Course Contents Introduction to object-oriented programming… …with a strong software engineering foundation… …aimed at producing and maintaining large, high-quality software systems. Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling © David J. Barnes and Michael Kölling

3 Objects First with Java
Buzzwords responsibility-driven design inheritance encapsulation iterators overriding coupling cohesion javadoc interface A few buzzwords - I use that among other things to address students who have prior programming experience (and often think they know everything already). This shows them that they can still learn a lot in this course. collection classes mutator methods polymorphic method calls Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling © David J. Barnes and Michael Kölling

4 Goals Sound knowledge of programming principles
Sound knowledge of object-orientation Able to critically assess the quality of a (small) software system Able to implement a small software system in Java Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

5 Book David J. Barnes & Michael Kölling Objects First with Java A Practical Introduction using BlueJ Third edition, Pearson Education, 2006 ISBN X. Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

6 Course overview (1) Objects and classes
Understanding class definitions Object interaction Grouping objects More sophisticated behavior - libraries Well-behaved objects - testing, maintaining, debugging Designing classes Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

7 Course overview (2) Inheritance Polymorphism
Extendable, flexible class structures Building graphical user interfaces Handling errors Designing applications Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

8 Objects First with Java
Demo Here, I start discussing objects and classes. I talk to the students about it for a while, then I do an extensive demo of the shapes example in BlueJ. All important points of this lecture are encountered and pointed out during this demo. All following slides serve only as summary, or reminder. No new material is introduced after the demo. Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling © David J. Barnes and Michael Kölling

9 Objects First with Java
Fundamental concepts object class method parameter data type You don’t always need to show all these slides in class. These are intended as summaries. Discuss these topics with a demo, or in a dialog, or in any way you like. Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling © David J. Barnes and Michael Kölling

10 Objects and classes objects classes
represent ‘things’ from the real world, or from some problem domain (example: “the red car down there in the car park”) classes represent all objects of a kind (example: “car”) Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

11 Methods and parameters
Objects have operations which can be invoked (Java calls them methods). Methods may have parameters to pass additional information needed to execute. Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

12 Other observations Many instances can be created from a single class.
An object has attributes: values stored in fields. The class defines what fields an object has, but each object stores its own set of values (the state of the object). Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

13 State Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

14 Two circle objects Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

15 Source code Each class has source code (Java code) associated with it that defines its details (fields and methods). Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

16 Return values Methods may return a result via a return value.
Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling


Download ppt "Objects First with Java A Practical Introduction using BlueJ"

Similar presentations


Ads by Google