Lec-1 (Object Oriented Programming)
Lec-1 (Object Oriented Programming)
Programming
BITS Pilani Dr. Yashvardhan Sharma
CSIS Dept., BITS-Pilani
Pilani Campus
• Course Overview
• Object Basics
• Three Pillars of OOP
• Basic Java Syntax
• Compiling/Executing Java Programs
3
4-Jan-20
BITS Pilani, Pilani Campus
Course Information
• CS F213
– 4 Unit Course
• Three Lectures / Week
– T TH S– 12:00 -12:50 PM
• Labs: 2 hours/week
– M TWFS – 2:00- 4:00 PM
– TH - 8:00-10:00 AM
• Text Books:
– T1 - Java: The Complete Reference, Herbert Schildt, McGraw Hill
Education, Tenth Edition, 2017
– T2- Object Oriented Design & Patterns, Cay Horstmann, John Wiley
& Sons, 2004
• Reference Books :
– R1- JavaTM Design Patterns – A Tutorial, James W. Cooper, Addison-Wesley, 2000
4
4-Jan-20
BITS Pilani, Pilani Campus
Evaluation Scheme:
5
BITS Pilani, Pilani Campus
Introduction to Object Oriented
Programming
Objects
Abstraction
Encapsulation
Inheritance
Polymorphism
Methods Methods
Object keeps Data Part +
Operation Part Together Data
Methods Methods
What’s class
• Encapsulation
• Inheritance
• Polymorphism
Methods Methods
A <<class>> A <<interface>>
B <<class>> B <<class>>
A A X X
B B A B C A B C
B B
C C
C C
Documentation Section
1. /**…… */ Documentation Comments
2. // Single Line Comment
3. /*…… */ Multi line Comments
Package Statement
Import Statements
Interface Statements
Class Definitions
Machine Code