Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

WELCOME

Lahore
ByDr.TabbasumNaz

ObjectOrientedConceptsand Programming
By Dr.Tabbasum Dr. Tabbasum Naz

ByDr.TabbasumNaz

CourseOutline Course Outline


Course Title Course Code Credit Hours Semester Resource P R Person Contact Hours (Theory) Contact Hours (Lab) Office Hours Email
Object Oriented Concepts and Programming CSC244/CSC245 4(3,1) Fall 2011 Dr. Dr Tabbasum Naz 3 hours per week 3 hours per week Shall be communicated later tabbasum.naz@ciitlahore.edu.pk

ByDr.TabbasumNaz

CourseOutline Course Outline


GENERALOVERVIEW ThiscourseprovidesanintroductiontotheconceptsandmethodologyofObject OrientedProgrammingwithJavaasanillustrationlanguage. g g g g Coursealsohelpstudentstoimplementobjectorientedconceptsinthelabkeeping inmindtherealworldproblems.

COURSEOBJECTIVES COURSE OBJECTIVES Understandmajorconceptsofobjectorientedprogramming KnowledgeandskillsinOOdesignandprogramdevelopment ExperienceinJavaprogrammingandprogramdevelopmentwithinanintegrated developmentenvironment Certainskillsinusinggraphicaluserinterface Topicscoveredinthiscourseprovideafoundationformoreadvancedcoursesin ComputerScience
ByDr.TabbasumNaz

CourseOutline Course Outline


TEXTBOOK JavaHowtoProgram,byDeitel &Deitel,7th Edition RECOMMENDEDBOOKS Java2:TheCompleteReference,byPatrickNaughton andHerbertSchildt Thinking in JavabyBruceEckel,PrenticeHall,4th ThinkinginJava by Bruce Eckel Prentice Hall 4 Edition,2006 BeginningJava2byIvor Horton g g y
ByDr.TabbasumNaz

CourseAssessment Course Assessment


TheoryPart Sessional IExam 10% SessionalI Exam SessionalIIExam 15% FinalExam 50% Quiz(6persemester)10% Assignments A i 15% Quizzesmaybeunannounced.Thereisnomakeupformissedquiz.

Practical/LabPart Performanceorexperiments SessionalIExam Sessional II Exam SessionalIIExam FinalExam

25% 10% 15% 50%

Theminimumpassmarksforeachcourseshallbe50%.Studentsobtaininglessthan 50%marksinanycourseshallbedeemedtohavefailedinthatcourse.
ByDr.TabbasumNaz

CourseAssessment Course Assessment


Grades G d A AB+ B BC+ C CD F Letter Grade L tt G d ( Excellent) Credit Points C dit P i t 4.0 3.7 3.3 3.0 2.7 2.3 2.0 1.7 1.3 0.0 Percentage Marks P t M k 90 and above 85-89 80-84 75-79 70-74 65-69 60-64 55-59 50-54 Less than 50

(Good)

(Average) (Minimum passing) (Failing)

ByDr.TabbasumNaz

CourseOutline
Weeks Week 1 Week 2 & 3 Topic of Lecture Course Overview Introduction to Java, History The Java Development Environment Object Oriented Concepts in Java, Classes, Objects, Methods Constructors Difference between OOP and procedural languages Control Statements if, if-else, while, dowhile, switch Methods Unified Modeling Language State Diagram Use Case Diagram Class Diagram Activity Diagram Arrays A deeper look into Java Classes and Objects, Encapsulation and data hiding Data abstraction
ByDr.TabbasumNaz

Reading Assignment Chapter 1& 2

Chapter 3

Week 4 Week 5

Chapter 4 & 5 Chapter 6 + Handouts

Week 6 Week 7

Chapter 7 Chapter 8 + Handouts

CourseOutline(Contd) Course Outline (Contd)


Week 8 & 9 Object Oriented Programming: Inheritance Chapter 9 + Handouts

Week 10

Object Oriented Programming: Polymorphism

Chapter 10

Week 11 & 12 Week 13 Week 14 Week 15 & 16

GUI components and Graphics Exception Handling Introduction to Java Applets Accessing Database with JDBC

Chapter 11 & 12 Chapter 13 Chapter 20 Chapter 25 & Handouts

ByDr.TabbasumNaz

AttendancePolicy Attendance Policy


A Minimum of 80% of attendance is required for sitting in the Final/Terminal examination. Any student having less than 80% attendance will receive F Grade g performance in regardless of his/her p previous exams, quizzes and assignments etc.
ByDr.TabbasumNaz

CodeofConduct
No Smoking, No Drugs No Arms Always display ID card Switch ff/ il t S it h off/silent mobile phone bil h in class rooms Abide by dress code Avoid noise in the class room Avoid political and religious discussions Believing in earning reward through hard work

ByDr.TabbasumNaz

Machine,AssemblyandHighLevel Languages
MachineLanguage
(1,0) Cumbersomeforhumans

AssemblyLanguage y g g
Englishlikeabbreviations Needtranslatorcalledassembler Example: load basepay, add overpay, store gross pay Example:loadbasepay,addoverpay,storegrosspay

HighLevelLanguages
NeedCompilerstoconvertHLLtomachinelanguage EverydayEnglishlikestatements Everyday English like statements Mostpreferable C,C++,.NETlanguages(e.g.,VisualBasic,VisualC++andC#), JAVA(themostwidelyused) JAVA (the most widely used)
ByDr.TabbasumNaz

C,C++andJavaHistory C, C++ and Java History


C 1972 DennisRitchie(Bell Laboratories) UNIXOS development development language C++ Early1980s Bjarne Stroustrup(Bell Stroustrup(Bell Laboratories) Capabilitiesof ObjectOriented Object Oriented Programming HybridLanguage ( / j (C/Object OrientedStyle) Java 1995 JamesGosling(Sun Microsystems) Generalpurpose Classbased Class based ObjectOriented Writeonce,run anywhere y

ByDr.TabbasumNaz

IntroductiontoObjectOriented Programming
Java: Todays most popular software Java:Today smostpopularsoftware developmentlanguage Developed by Sun Microsystems DevelopedbySunMicrosystems Implementationatjava.sun.com/j2se ObjectOrientedProgramming Portable(computerprogramswritteninthe ( p p g Javalanguagemustrunsimilarlyonany hardware/operatingsystemplatform). / p g y p )
ByDr.TabbasumNaz

JamesGosling,MikeSheridan,andPatrickNaughton initiatedtheJavalanguageprojectinJune1991. Javawasoriginallydesignedforinteractivetelevision,butitwastooadvancedforthedigitalcable televisionindustryatthetime. television industry at the time ThelanguagewasinitiallycalledOak afteranoaktreethatstoodoutsideGosling'soffice;itwentbythe nameGreen later,andwaslaterrenamedJava,fromJavacoffee,saidtobeconsumedinlargequantities bythelanguage screators. by the language's creators. SunMicrosystemsreleasedthefirstpublicimplementationasJava1.0in1995.Itpromised"WriteOnce, RunAnywhere"(WORA),providingnocostruntimesonpopularplatforms. WiththeadventofJava2 ,newversionshadmultipleconfigurationsbuiltfordifferenttypesofplatforms. Forexample,J2EE targetedenterpriseapplicationsandthegreatlystrippeddownversionJ2ME formobile applications(MobileJava).J2SE designatedtheStandardEdition. In2006,formarketingpurposes,SunrenamednewJ2 versionsasJavaEE,JavaME,andJavaSE, respectively. In2007,SunmadetheJava'scorecodeavailableunderfreesoftware/opensourcedistributionterms. p

JAVA

ByDr.TabbasumNaz

Goals:JavaLanguage Goals: Java Language Itshouldbe"simple,object orientedandfamiliar". Itshouldbe"robustand secure". It h ld b " hit t Itshouldbe"architecture neutralandportable". Itshouldexecutewith"high g performance". Itshouldbe"interpreted, threaded,anddynamic". th d d d d i "

Versions
MajorreleaseversionsofJava, alongwiththeirreleasedates: g JDK1.0(January23,1996) JDK1.1(February19,1997) J2SE1.2(December8,1998) J2SE1.3(May8,2000) J2SE1.4(February6,2002) J2SE 1 4 (February 6 2002) J2SE5.0(September30,2004) JavaSE6(December11,2006) JavaSE7(July28,2011)

ByDr.TabbasumNaz

BenefitsofJavatoProgrammingCommunity Benefits of Java to Programming Community


SupportGUIsandmultimediacapabilitiessuchas pp p graphics,images,animation,audioandvideo. Run on internet and communicate with other Runoninternetandcommunicatewithother applications Applicationscantakeadvantageoftheflexibilityand performanceimprovementsofmultithreading Applicationswithricherfileprocessingthanis p providedbyCorC++. y
ByDr.TabbasumNaz

BenefitsofJavatoProgrammingCommunity Benefits of Java to Programming Community


Notlimitedtothedesktoporeventosomelocalcomputer network,butcanintegrateInternetcomponentsandremote databasesaswell. A li ti Applicationsthatcanbewrittenquicklyandcorrectlyina th t b itt i kl d tl i mannerthattakesadvantageofprebuiltsoftware components. Easyaccesstoagrowinguniverseofreusablesoftware components. t Programmers want all these benefits in a truly portable Programmerswantallthesebenefitsinatrulyportable manner,sothatapplicationswillrunwithoutmodificationon ByDr.TabbasumNaz avarietyofplatforms

HelloWorldExample Hello World Example


//Thisisanexampleofasinglelinecommentusingtwoslashes /*Thisisanexampleofamultiplelinecommentusingtheslashandasterisk. Thistypeofcommentcanbeusedtoholdalotofinformationordeactivate codebutitisveryimportanttoremembertoclosethecomment.*/ code but it is very important to remember to close the comment */ /** *ThisisanexampleofaJavadoc comment;Javadoc cancompiledocumentation p p *fromthistext. */ classHelloWorldApp { publicstaticvoidmain(String[]args){ System.out.println("HelloWorld!");//Displaythestring. } }
ByDr.TabbasumNaz

THANKYOU THANK YOU

ByDr.TabbasumNaz

You might also like