Hours: 8 | Marks: 8
OOP म्हणजे Object वापरून programming करण्याची पद्धत
Example Languages:
C++
Java
Python
C#
Main features:
Class
Object
Encapsulation
Inheritance
Polymorphism
Code reuse
Security
Easy maintenance
Software development
Banking software
Game development
| Structured | OOP |
|---|---|
| Function based | Object based |
| Example: C | Example: C++ |
Definition:
User defined data type
Definition:
Instance of class
Example:
Student s1;
Hours: 7 | Marks: 7
Declaration of function
Execution speed increases
Default value given
Same function name with different parameters
Example:
add(int a, int b)
add(int a, int b, int c)
Special function
Hours: 8 | Marks: 8
Types:
Public
Private
Protected
Memory allocated when object created
Object passed to function
One class acquires properties of another class
Single Inheritance
Multiple Inheritance
Hierarchical Inheritance
Multilevel Inheritance
Hybrid Inheritance
Hours: 8 | Marks: 8
Same function different behavior
Example:
Function Overloading
Example:
Function Overriding
Used in runtime polymorphism
Used in abstract class
Early Binding
Late Binding
Example:
operator
Example:
++
Example:
Operator must be member function
1. Understanding of fundamental principles of OOP, including concepts like classes, objects, inheritance, polymorphism, encapsulation
2. 2. Understanding of how to apply OOP concepts effectively within the C++ programming language
3. 3. Design and develop structured, reusable, and modular code by creating well-defined classes and objects to solve complex problems.
BSC Semester 4 Computer Science Major Paper 1 (NEP)
No Review found