Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Class notes Programming

Rating
-
Sold
-
Pages
49
Uploaded on
08-10-2025
Written in
2025/2026

It is very useful and important for sy bca students in external exam for every student and it is easy to understand and Read

Institution
Course

Content preview

SYBCA Sem-3
Object Oriented Programming and Data Structure
Theory Assignment



1.Difference between Procedural Programming and OOPS.
2.Detail notes of access control specifier(public, private and protected).
3.Explain data hiding, abstraction and encapsulation with example.
4.Explain Inheritance and types of inheritance with example.
5.Explain constructor and destructor with example.
6.Difference between compile-time polymorphism and run-time
polymorphism.
7.Explain overloading and overriding with example.
8.Explain friend function with example.
9.Difference between virtual function and pure virtual function.
10.Explain Infix to postfix and Infix to prefix with example.
11.Explain stack with algorithm.
12.Detail notes about queue with algorithm.

,1.Difference between procedural programming and OOPS.


Procedure Oriented Object-Oriented Programming
Feature
Programming (POP) (OOP)
Program is divided into small Program is divided into parts
Division
parts called functions. called objects.
Approach Follows Top-Down approach. Follows Bottom-Up approach.
Access POP does not have any OOP has access specifiers named
Specifiers access specifier. public, private, protected.
Adding new data and Easy to add new data and
Expansion
functions is difficult. functions.
Examples C, Pascal, FORTRAN, VB. C++, Java, Python, C#, VB.NET.
High reusability through
Reusability Code reusability is less.
inheritance and polymorphism.
Complexity Suitable for large and complex
Suitable for small programs.
Handling programs.
Inheritance No inheritance support. Inheritance is a key feature.




2.Detail notes of access control specifier(public, private and protected).


🔑 Access Control Specifiers in OOP
 Access control specifiers are keywords used in Object-Oriented
Programming (OOP) to define the scope and visibility of class members
(data members & methods).

,  They control who can access the variables, methods, and functions of a
class.
There are mainly three types:
1. Public
2. Private
3. Protected


1. Public
 Definition:
Members declared as public are accessible from anywhere in the program
(inside or outside the class).
 They are available inside the class,
outside the class, and
in derived classes.

 Scope:
Global scope means a variable or function is accessible from any class,
function, or object in the program.
 Use:
When you want to allow free access to methods or variables.
Example:
#include <iostream.h>
#include <conio.h>
class Student {
public:
int rollNo;
void display() {
cout << "Roll No: " << rollNo;
}
};

, void main() {
Student s;
s.rollNo = 10;
s.display();
getch();
}


2. Private
 Definition:
Members declared as private are accessible only within the same class.
 They cannot be accessed from outside the class or by derived classes.
 Used for data hiding and security.
<<




 Scope:
Not accessible outside the class or by derived (child) classes.
 Use:
For data hiding and ensuring security (sensitive information).
Example:
#include <iostream.h>
#include <conio.h>
class Student {
private:
int marks;
public:
void setMarks(int m) { // ✅ Access via public method
marks = m;
}

Written for

Institution
Course

Document information

Uploaded on
October 8, 2025
Number of pages
49
Written in
2025/2026
Type
Class notes
Professor(s)
Dipali
Contains
All classes

Subjects

$7.39
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
meetbhaai

Get to know the seller

Seller avatar
meetbhaai Atmanand saraswati science college
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
6 months
Number of followers
0
Documents
5
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions