100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CONCEPT OF OOPS IN C ++ $2.99   Add to cart

Exam (elaborations)

CONCEPT OF OOPS IN C ++

 1 view  0 purchase
  • Course
  • Institution

GIVE BEST KNOWLEDGE FROM BASIC ,BRIEF DISUCSSION ON ALL THE FOUR CONCEPTS OF OOPS WHICH HAS MAXIMAM CHANCE TO COME IN ANY DEGREE CORCES WHICH HAVE OOPS CONCEPT AND THAT NOTES GIVES YOU FULL MARKS ON THIS TOPIC

Preview 1 out of 2  pages

  • March 4, 2023
  • 2
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
avatar-seller
4 Pillars of OOPs Concept -
Inheritance, Polymorphism,
Encapsulation & Abstraction
The worlds leading project driven platform. All programs come with
one week free trail , there are assured scholarship also. There is a
fellowship program also , where placement is guaranteed That you will
be placed in a product based company. Crio is the place for you to
master development. Encapsulation is wrapping of data members and
functions into single entity. In fully encapsulation all the data
members are marked private. The advantages include being able to
hide data. If I marked it private, then no other class can access the
level or numbers. If this class name is hero, then can I directly access
Hero. name or Hero. level. So you have marked all these members as
private. We will talk about the 2nd concept , Inheritance What is
inheritance ? Lets take a example , your one relative said your height
is same as your father , your father is tall so your are also tall. If your
mom 's hair is silky and you have also silky hair, you have inherited
this In same way here also inheritance is the same thing There will be
a class , it will have some properties , behaviour , and you will inherit
it in any other class.

In public mode. you have to specify the access modifier , then the
parent class name. These 3 ere the modes , which we have already
discussed. Lets 1st inherit in public mode and see how it works. In
male there is no such thing , there is only colour. All properties and
functions of Human class will be inherited to male class. For any
attribute there will be an access modifier. If any attribute is public in
base class And I have inherited it in public mode in male class, then it
will be public in your class also If there is an entity which is private
here , and you have inherited. it is not accessible in this mode. If
anything is marked private in base class and you are inheriting it in a
public way, then it will be not accessible. In case of protected, in super
class it is marked protected and public. If you are accessing it in
protected way then your answer will be protected. If your attributes
are marked private now, public, or protected, or private. In all cases it
will give not accessible in all cases.

If a super class is public and its mode of inheritance is private, then
your height will also become private. In this case, your height is
marked public and you have inherited it privately. This means you can
access it in your own class. but not outside but there is one condition.
Your child/derived class can also access it. If my height is marked
protected In main class height is protected, and I have inherited it in
public mode. In case of private , no matter which ever case you use , it
is not accessible. In short we know that. if anything is private , and I

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 atulgupta. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80435 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
$2.99
  • (0)
  Add to cart