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
Document preview thumbnail
Preview 3 out of 21 pages
Class notes

C++ OOP concepts

Document preview thumbnail
Preview 3 out of 21 pages

This document contains concise info on OOP C++.

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.

Document information

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

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

Sold
1
Followers
1
Items
10
Last sold
5 year ago



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