100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

C++ OOP concepts

Rating
-
Sold
-
Pages
21
Uploaded on
17-08-2021
Written in
2021/2022

This document contains concise info on OOP C++.

Institution
Course










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
August 17, 2021
Number of pages
21
Written in
2021/2022
Type
Class notes
Professor(s)
Ue
Contains
All classes

Subjects

Content preview

Object
• It is an instance of a class which has some physical or
logical significance.
• Example: Table, Chair, Mobile.


Class
• It is a collection of objects which is the building block
of Object Oriented Programming.
• It has its own data members and member functions
which define the behavior of Objects of the class.

, Declaration of classes Access Specifiers in a c
• These specify the access leve
Class Name
the members of the class.
Access • There are three types:
Member
Specifiers (1) Private
Variables (2) Public
(3) Protected
• Usually, the data members o
Member
Functions
class are declared in the priv
section of the class and the
Object of class member functions are in pub
student
section.

, Private Access Specifier
• The class members declared inside Private Access Specifier can be
accessed only by other members inside the class.
• An object cannot access the class members declared inside Private A
Specifier.
Public Access Specifier
• The class members declared inside Private Access Specifier can be
accessed by everyone – objects, other classes and other class memb
• If no Access Specifier is mentioned in a class, by default the Access
specifier is Private and not Public.
Protected Access Specifier
• This Access Specifier is mainly used in implementing Inheritance in OO
• The class members declared inside the Protected Access Specifier can
accessed only by Inherited classes and friend classes.
$3.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
theNoeMaster

Get to know the seller

Seller avatar
theNoeMaster VIT
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
4 year
Number of followers
1
Documents
10
Last sold
4 year ago

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

Frequently asked questions