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
Summary

Summary OOPS Concept

Rating
-
Sold
-
Pages
19
Uploaded on
09-05-2023
Written in
2022/2023

Summary of 19 pages for the course OOPS at OOPS (OOPS Concept)

Institution
Course

Content preview

,What is OOPs?
 It stands for Object-Oriented Programming.
 It is based on objects
 It follows Bottom-up programming approach.
 It is based on real world.
 It provides data hiding so it is very secure.
 It provides reusability feature.

What is a class?
A class is a collection of objects. Classes don’t consume any space in the memory.

It is a user defined data type that act as a template for creating objects
of the identical type.

A large number of objects can be created using the same class. Therefore, Class is
considered as the blueprint for the object.

What is an object?
An object is a real world entity which have properties and functionalities.
Object is also called an instance of class. Objects take some space in memory.

For eg .
Fruit is class and its object s are mango ,apple , banana
Furniture is class and its objects are table , chair , desk


What is the difference between a class and an object?


Class Object
1. It is a collection of objects. It is an instance of a class.

2. It doesn't take up space in memory. It takes space in memory.

3. Class does not exist physically Object exist physically.

4. Classes are declared just once Objects can be declared as and when required

, What is the difference between a class and a structure?


Class Structure
1.Class is a collection of objects. Structure is a collection of variables of
different data types under a single unit
2. Class is used to combine data and methods Structure is used to grouping data.
together.

3. Class's objects are created on the heap Structure's objects are created on the
memory. stack memory.

4. A class can inherit another class. A structure can't inherit another
structure.
5. A class has all members private by default A structure has all members public by
default
6. Classes are ideal for larger or complex Structures are ideal for small and
objects isolated model objects


Following are the basic features of OOPs -




Inheritance Abstraction




OOP


Encapsulation Polymorphism

Written for

Course

Document information

Uploaded on
May 9, 2023
Number of pages
19
Written in
2022/2023
Type
SUMMARY

Subjects

$6.79
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
hansraj1

Get to know the seller

Seller avatar
hansraj1 Exam Questions
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
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