100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary OOPS Concept $6.29   Add to cart

Summary

Summary OOPS Concept

  • Course
  • Institution

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

Preview 3 out of 19  pages

  • May 9, 2023
  • 19
  • 2022/2023
  • Summary
avatar-seller
,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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller hansraj1. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $6.29. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$6.29
  • (0)
  Add to cart