Subject Code: BMC202
Subject: Object Oriented Programming (OOP)
Semester: MCA 1st Year, 2nd Semester
UNIT I - Introduction to Object-Oriented Programming & Java Basics
1. Introduction to OOP
Definition: A programming model based on objects containing data and behavior.
Key Concepts:
- Object: Instance of a class
- Class: Blueprint for creating objects
- Abstraction: Hiding details
- Encapsulation: Binding data and methods
- Inheritance: Reuse code from parent class
- Polymorphism: Same method behaving differently
2. Java Overview
- Platform-independent
- Robust, Secure, Multithreaded
- Write Once, Run Anywhere
3. Java Program Structure
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello MCA!");
}
4. Java Fundamentals
- Constructors
- Methods
- Access Specifiers (public, private, protected, default)
- Static Members
5. Syntax & Flow Control
- Data Types: int, float, boolean, char
- Operators: +, -, *, /, &&, ||, >, <
- Control Statements: if, switch, loops (for, while, do-while)
- Arrays
Top 10 Questions:
1. Principles of OOP with examples
2. Procedural vs OOP
3. Encapsulation with code
4. JVM architecture
5. Constructors program
6. Static member usage
7. Access specifiers
8. Java features
9. Method overloading
10. Array operations program
(Other units continue similarly...)