Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 1762
Next
In Process
Hari
Hari

Hari

  • India
  • 46 Questions
  • 0 Answers
  • 0 Best Answers
  • 37 Points
View Profile
  • 2
Hari
Asked: May 5, 20212021-05-05T10:35:32+05:30 2021-05-05T10:35:32+05:30In: C Language

What is OOPs concept in C++ with examples?

  • 2

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

opps conceptwhat is oops conceptwhat is oops concept in c++ with examples?what ways to get what is oops concept in c++
  • 2
  • 1,330
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • code for matrix multiplication in c
    • c keep asking for input how to write a program that asks user input
    • How do you find the factorial of a number in C using while loops?
    • What Is A "null Pointer Assignment" Error? What Are Bus Errors, Memory Faults, And Core Dumps?
    • What is the use of github?
    • How to fix broken commit
    • in turbo c how to change the cursor

    2 Answers

    1. Namrata

      Namrata

      • India
      • 15 Questions
      • 14 Answers
      • 2 Best Answers
      • 71 Points
      View Profile
      Namrata
      2021-05-07T13:41:02+05:30Added an answer on May 7, 2021 at 1:41 pm

      OOPS is nothing but Object Oriented Programming Languages. C++, java, python etc are some OOP languages. OOPs concepts involve:

      • Polymorphism(One thing can be expressed in many forms)
      • Inheritance(child class deriving properties from parent class)
      • Encapsulation(Many things combined to form a single class)
      • Abstraction(Concept that describes what to do but not how to do)
      • Class(Combination of variables + member functions)
      • Object(instance of a class)

      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:

      • OOP makes it possible to create full reusable applications with less code and shorter development time
      • faster
      • Secure
      • Provide clear structure of the program.
      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. Mingle tap

      Mingle tap

      • Junior Lead,Arka Soft pvt lmtd.Hyderabad.
      • 118 Questions
      • 70 Answers
      • 1 Best Answer
      • 225 Points
      View Profile
      single tap Junior Lead,Arka Soft pvt lmtd.Hyderabad.
      2021-05-09T21:35:50+05:30Added an answer on May 9, 2021 at 9:35 pm

      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.

      • 1
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • glenn

      code for matrix multiplication in c

    • Tech savvy

      c keep asking for input how to write a program

    • Mingle tap

      How do you find the factorial of a number in

    • Namrata

      What Is A "null Pointer Assignment" Error? What Are Bus

    • Samakshi baghel

      What is the use of github?

    • Samakshi baghel

      How to fix broken commit

    • shree

      in turbo c how to change the cursor

    • Rekha kumari

      How to print all characters from a string in C.

    Stats

    • Questions 1,988
    • Answers 2,095
    • Posts 12
    • Best Answers 73

    Related Questions

    • glenn

      code for matrix multiplication in c

    • Tech savvy

      c keep asking for input how to write a program that asks

    • Mingle tap

      How do you find the factorial of a number in C using

    • Namrata

      What Is A "null Pointer Assignment" Error? What Are Bus Errors, Memory

    • Samakshi baghel

      What is the use of github?

    • Samakshi baghel

      How to fix broken commit

    • shree

      in turbo c how to change the cursor

    • Rekha kumari

      How to print all characters from a string in C.

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • shree on How to use philips citrus press juicer 25 watts Demo
    • kiran kumar85 on How To Insert Names Automatically in Excel Sheet With VBA Code
    • Satish on How To Insert Names Automatically in Excel Sheet With VBA Code
    • jameslaurence on alarm won’t go off while on facetime how to fix
    • jameslaurence on how to solve export problem in kinemaster
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.