Upload
sheena-hamilton
View
214
Download
0
Embed Size (px)
Citation preview
Module Overview
Module Title: OO Programming Module Code: MIT3446 Module Value: 3.0 Duration: 15 weeks Class-Contact Hours: Lecture 15
hrs Lab/Tutor 30hrs
Assessment Scheme
Continuous Assessment 50%– 1 Test 20% each, Total 20%– 1 Assignment 15%– 2 Lab Works 15%
Sessional Examination 50%
Content Area
1. Object-Oriented Programming Concepts– OOP versus Procedural Programming
Encapsulation Inheritance Polymorphism
– Class and Objects
2. Graphical User Interface (GUI)- Event Handling- Exception Handling
Content Area
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:
An Introduction to Object-Oriented Programming with Java, C. Thomas Wu, McGraw Hill
JAVA How to Program, Deitel & Deitel, Prentice Hall
The Java Tutorial Second Edition, Campione & Walrath, Addison-Wesley
Web Sites:
Java Technology Home Page http://java.sun.com/
Getting Started with Java(TM) Technology http://java.sun.com/starter.html
The Java Language Environment: Contents http://java.sun.com/docs/white/langenv/
Applets http://java.sun.com/applets/index.html
C, C++ and Java
C is procedural C++ = C + Object Oriented Programming.
You can program in C++ without using objects Java is pure object oriented You cannot
program in Java without using objects The development of Java is based on C and C+
+
Java
Developed by the Sun Microsystems (James Gosling)
Originated as a language for consumer appliances at Sun in 1991
Java Applets: Java programs that run within a Web browser
Java Applications: A complete stand-alone program
Special Features of Java
Java is Simple– no header files– no structures– no pointer arithmetic
Special Features of Java
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
Garbage Collection– built-in program to scan memory and frees any
memory that is no longer in use– easier memory management