Iam a “c” language learning now, because of this reason I want information about opps concept in C++ with examples?
Please give me a answer this question
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Namrata
OOPS is nothing but Object Oriented Programming Languages. C++, java, python etc are some OOP languages. OOPs concepts involve:
Procedural programming such as C is about writing procedures or functions that perform operations on the data, while object-oriented programming language such as C++ is about creating objects that contain both data and functions.
Why to choose OOPS is because:
Mingle tap
OOPS concept example: Dialling a number call some method internally which concatenate the numbers and displays it on screen but what is it doing we don’t know.
For example class would be cars where engine, accelerator, seats etc are the data members
Any car such as maruthi would be an object of the class cars.
Example class for OOPS concept:
class sum{
int a;
int b;
int c;
int sum_1(){
c=a+b;
}
}s1;
where sum is class with datamembers a,b,c,sum_1() and the instance is s1.