Introduction To Object Oriented Programming In C++
All documents for this subject (6)
Seller
Follow
atulgupta
Content preview
OOPs Concepts in C++ || Part-1
Coding Ninjas is the largest coding education platform where
you can access various type of courses if you are interested
in paid courses. If you want courses on web dev, machine
learning, development, OS, DBMS, DSA in java , Python then
CN is the place for you. The courses are available in both
Hindi and English languages You will also get hint videos in
every question. doubts are resolved within 1-2 hours.
Courses are really well structured If you will work hard , then
you will definitely get results The course makers have
already cracked big tech companies. If I talk about this
object , there is only an integer , it is of 4 bytes. When I
create this type of objects , it will take the size of its
properties. A class is actually a type of templet there should
be a health named integer When I write hero h1 , I made an
implementation of this. here place some value in health.
There is health , here we put value in it. A block got reserved
in memory , where data of this health got filled In short,
there was an integer when I made its object.
These are my some properties , I put them here There will be
health , level , health , now if I want to print them then how
will I do it Comment it Here we have already created h1 , if
you want to access it Lets name it Ramesh. If I write public
here then both will give error because both became private.
By default your access modifier in class is private. Public
means we can access it inside and outside the class. Private
means you can access them inside the class only. Public is
public, private is public and private is private. Bhaiya is a
child class concept. We have a concept of getter /setter , we
will use it. If any data member is private in your class, you
can access it using getter and setter. If anything is marked
private then I can use getter to read it. If you want to check
only user A can change it and no other can do it. There also
setter can be used to fetching/read setter is for putting any
condition.
You have to study about padding, greedy alignment and
greedy alignment. These are the things you will not find in
paid courses also. If you read it once then this will become
clear to you. I have not seen this in any online test till now
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 $6.99. You're not tied to anything after your purchase.