Module Overview n Module Title: OO Programming n Module Code: MIT3446 n Module Value: 3.0 n Duration: 15 weeks n Class-Contact Hours: Lecture15 hrs n Lab/Tutor30hrs
Assessment Scheme n Continuous Assessment50% – 1 Test 20% each, Total20% – 1 Assignment 15% – 2 Lab Works 15% n Sessional Examination50%
Content Area n 1. Object-Oriented Programming Concepts – OOP versus Procedural Programming n Encapsulation n Inheritance n Polymorphism – Class and Objects n 2. Graphical User Interface (GUI) - Event Handling - Exception Handling
Content Area n 3. Java Programming – Java Programming Environment – Java Applets – Object Creation and Initialization – Class Derivation and Inheritance – Message-passing – Polymorphism and Overloading – Control of Access and Visibility
Textbooks/References: n An Introduction to Object-Oriented Programming with Java, C. Thomas Wu, McGraw Hill n JAVA How to Program, Deitel & Deitel, Prentice Hall n The Java Tutorial Second Edition, Campione & Walrath, Addison-Wesley
Web Sites: n Java Technology Home Page n Getting Started with Java(TM) Technology n The Java Language Environment: Contents n Applets
C, C++ and Java n C is procedural n C++ = C + Object Oriented Programming. You can program in C++ without using objects n Java is pure object oriented You cannot program in Java without using objects n The development of Java is based on C and C++
Java n Developed by the Sun Microsystems (James Gosling) n Originated as a language for consumer appliances at Sun in 1991 n Java Applets: Java programs that run within a Web browser n Java Applications: A complete stand-alone program
Special Features of Java n Java is Simple – no header files – no structures – no pointer arithmetic
Special Features of Java n Java is Compiled – Java source code is compiled into byte-code.class file – byte-codes: machine independent – JVM (Java Virtual Machine) to interpret the byte-codes.
Special Features of Java n Garbage Collection – built-in program to scan memory and frees any memory that is no longer in use – easier memory management