Module Overview Module Title OO Programming n Module

  • Slides: 11
Download presentation
Module Overview Module Title: OO Programming n Module Code: MIT 3446 n Module Value:

Module Overview Module Title: OO Programming n Module Code: MIT 3446 n Module Value: 3. 0 n Duration: 15 weeks n Class-Contact Hours: Lecture n Lab/Tutor n 15 hrs 30 hrs

Assessment Scheme n Continuous Assessment 50% 1 Test 20% each, Total 1 Assignment 2

Assessment Scheme n Continuous Assessment 50% 1 Test 20% each, Total 1 Assignment 2 Lab Works 20% 15% Sessional Examination 50% – – – n

Content Area n 1. Object-Oriented Programming Concepts – OOP versus Procedural Programming n n

Content Area n 1. Object-Oriented Programming Concepts – OOP versus Procedural Programming n n n – n Encapsulation Inheritance Polymorphism Class and Objects 2. Graphical User Interface (GUI) - Event Handling Exception Handling

Content Area n 3. Java Programming – – – – Java Programming Environment Java

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: An Introduction to Object-Oriented Programming with Java, C. Thomas Wu, Mc. Graw Hill

Textbooks/References: An Introduction to Object-Oriented Programming with Java, C. Thomas Wu, Mc. Graw Hill n JAVA How to Program, Deitel & Deitel, Prentice Hall n The Java Tutorial Second Edition, Campione & Walrath, Addison-Wesley n

Web Sites: Java Technology Home Page http: //java. sun. com/ n Getting Started with

Web Sites: Java Technology Home Page http: //java. sun. com/ n Getting Started with Java(TM) Technology http: //java. sun. com/starter. html n The Java Language Environment: Contents http: //java. sun. com/docs/white/langenv/ n Applets http: //java. sun. com/applets/index. html n

C, C++ and Java C is procedural n C++ = C + Object Oriented

C, C++ and Java 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++ n

Java Developed by the Sun Microsystems (James Gosling) n Originated as a language for

Java 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 n

Special Features of Java n Java is Simple – – – no header files

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

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

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