{"id":20356558,"url":"https://github.com/madhurimarawat/object-oriented-programming-with-c-plus-plus","last_synced_at":"2026-01-08T00:06:10.518Z","repository":{"id":171966582,"uuid":"528330211","full_name":"madhurimarawat/Object-oriented-programming-with-c-plus-plus","owner":"madhurimarawat","description":"This repository contains programs in the C++ programming language related to Object Oriented programming.","archived":false,"fork":false,"pushed_at":"2024-07-27T07:00:58.000Z","size":1724,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T14:43:09.338Z","etag":null,"topics":["abstract-classes","array-manipulations","arrays-and-strings","constructor","cpp","encapsulation","exception-handlers","exception-handling","file-handling-in-cpp","inheritence","object-oriented-programming","oops-in-cpp","overloading","pointer-to-function","pointers-and-references","polymorphism","static","string-manipulation","templates","virtual-functions"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madhurimarawat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-24T08:20:39.000Z","updated_at":"2024-07-27T07:09:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"709dc98d-0d33-46f9-aa94-8a209515930e","html_url":"https://github.com/madhurimarawat/Object-oriented-programming-with-c-plus-plus","commit_stats":null,"previous_names":["madhurimarawat/object-oriented-programming-with-c-plus-plus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FObject-oriented-programming-with-c-plus-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FObject-oriented-programming-with-c-plus-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FObject-oriented-programming-with-c-plus-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FObject-oriented-programming-with-c-plus-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madhurimarawat","download_url":"https://codeload.github.com/madhurimarawat/Object-oriented-programming-with-c-plus-plus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246193154,"owners_count":20738450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abstract-classes","array-manipulations","arrays-and-strings","constructor","cpp","encapsulation","exception-handlers","exception-handling","file-handling-in-cpp","inheritence","object-oriented-programming","oops-in-cpp","overloading","pointer-to-function","pointers-and-references","polymorphism","static","string-manipulation","templates","virtual-functions"],"created_at":"2024-11-14T23:17:02.297Z","updated_at":"2026-01-08T00:06:10.473Z","avatar_url":"https://github.com/madhurimarawat.png","language":"C++","readme":"# Object-oriented-programming-with-c-plus-plus\nThis repository contains programs in the C++ programming language related to Object Oriented programming.\u003cbr\u003e\u003cbr\u003e\n\n\u003cimg src = \"https://github.com/madhurimarawat/Object-oriented-programming-with-c-plus-plus/assets/105432776/1284d625-f4b2-403d-ae65-220bc47ee950\" height=400px width=650\u003e\n\n---\n\n# About C++ Programming\n--\u003e C++ is a cross-platform language that can be used to create high-performance applications.\u003cbr\u003e\u003cbr\u003e\n--\u003e C++ was developed by Bjarne Stroustrup, as an extension to the C language.\u003cbr\u003e\u003cbr\u003e\n--\u003e C++ gives programmers a high level of control over system resources and memory.\u003cbr\u003e\u003cbr\u003e\n--\u003e C++ is an object-oriented programming language which gives a clear structure to programs and allows code to be reused, lowering development costs.\u003cbr\u003e\u003cbr\u003e\n\n---\n# Mode of Execution used \u003cimg src=\"https://logodix.com/logo/1709678.png\" height=30px width=30px\u003e\n\u003ch2\u003eGCC Compiler\u003c/h2\u003e\n--\u003e GCC stands for GNU C/C++ Compiler.\u003cbr\u003e\u003cbr\u003e\n--\u003e To begin with GCC, visit the official website \u0026nbsp;\u003ca href=\"https://gcc.gnu.org/\"\u003e\u003cimg src=\"https://logodix.com/logo/1709678.png\" height=30px width=30px\u003e\u003c/a\u003e\u003cbr\u003e\u003cbr\u003e\n--\u003e Download GCC according to the platform being used like Linux, MacOs or Windows.\u003cbr\u003e\u003cbr\u003e\n--\u003e Follow the setup wizard.\u003cbr\u003e\u003cbr\u003e\n--\u003e Write c++ code in any text editor or IDE and save it with .cpp extention.\u003cbr\u003e\u003cbr\u003e\n--\u003e Then just open the console and run this command -\u003cbr\u003e\u003cbr\u003e\n\n```\ng++ filename.cpp -o Output\n```\n--\u003e Filename is the name of the C++ script file and Output is the name of the output file.\u003cbr\u003e\u003cbr\u003e\n--\u003e After this command is executed, if the code is successfully compiled output file will be saved in the same location as the code file.\u003cbr\u003e\u003cbr\u003e\n--\u003e Once this Output file is executed in command prompt, the output will be displayed.\n\n---\n\n# C++ Programming Features\n\n\u003cimg src=\"https://github.com/madhurimarawat/Object-oriented-programming-with-c-plus-plus/assets/105432776/3062241f-9f30-4a81-a0bc-9627eaa39f5c\" height=400 width=650\u003e\n\n---\n# Object Oriented Programming\n\n\u003cimg src=\"https://github.com/madhurimarawat/Object-oriented-programming-with-c-plus-plus/assets/105432776/a5982638-92e3-4920-9b67-c0b60ff2ffd7\" height=430 width=650\u003e\n\u003cbr\u003e\n\u003ch2\u003eClass\u003c/h2\u003e\n--\u003e The building block of C++ that leads to Object-Oriented programming is a Class.\u003cbr\u003e\u003cbr\u003e\n--\u003e It is a user-defined data type, which holds its own data members and member functions, which can be accessed and used by creating an instance of that class.\n--\u003e A class is like a blueprint for an object.\u003cbr\u003e\n\n\u003ch2\u003eObject\u003c/h2\u003e\n--\u003e An Object is an identifiable entity with some characteristics and behavior.\u003cbr\u003e\u003cbr\u003e\n--\u003e An Object is an instance of a Class. When a class is defined, no memory is allocated but when it is instantiated (i.e. an object is created) memory is allocated.\u003cbr\u003e\n\n\u003ch2\u003eData Abstraction\u003c/h2\u003e\n--\u003e Data abstraction is one of the most essential and important features of object-oriented programming in C++.\u003cbr\u003e\u003cbr\u003e\n--\u003e Abstraction means displaying only essential information and hiding the details. \u003cbr\u003e\n\n\u003ch2\u003eData Encapsulation\u003c/h2\u003e\n--\u003e In normal terms, Encapsulation is defined as wrapping up data and information under a single unit. \u003cbr\u003e\u003cbr\u003e\n--\u003e In Object-Oriented Programming,Encapsulation is defined as binding together the data and the functions that manipulate them.\u003cbr\u003e\n\n\u003ch2\u003ePolymorphism\u003c/h2\u003e\n--\u003e The word polymorphism means having many forms. \u003cbr\u003e\u003cbr\u003e\n--\u003e In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form. \u003cbr\u003e\n\n\u003ch2\u003eInheritance\u003c/h2\u003e\n--\u003e The capability of a class to derive properties and characteristics from another class is called Inheritance.\u003cbr\u003e\u003cbr\u003e\n--\u003e Inheritance supports the concept of “reusability”, i.e. when we want to create a new class and there is already a class that includes some of the code that we want, we can derive our new class from the existing class. \u003cbr\u003e\n\n\u003ch2\u003eDynamic Binding\u003c/h2\u003e\n--\u003e In dynamic binding, the code to be executed in response to the function call is decided at runtime.\u003cbr\u003e\u003cbr\u003e\n--\u003e C++ has virtual functions to support this.\u003cbr\u003e\u003cbr\u003e\n--\u003e Because dynamic binding is flexible, it avoids the drawbacks of static binding, which connected the function call and definition at build time.\u003cbr\u003e\n\n\u003ch2\u003eMessage Passing\u003c/h2\u003e\n--\u003e Objects communicate with one another by sending and receiving information.\u003cbr\u003e\u003cbr\u003e\n--\u003e A message for an object is a request for the execution of a procedure and therefore will invoke a function in the receiving object that generates the desired results.\u003cbr\u003e\u003cbr\u003e\n--\u003e Message passing involves specifying the name of the object, the name of the function, and the information to be sent.\n\n---\n\n## Thanks for Visiting 😄\n\nDrop a 🌟 if you find this repository useful.\u003cbr\u003e\u003cbr\u003e\nIf you have any doubts or suggestions, feel free to reach me.\u003cbr\u003e\u003cbr\u003e\n📫 How to reach me:  \u0026nbsp; [![Linkedin Badge](https://img.shields.io/badge/-madhurima-blue?style=flat\u0026logo=Linkedin\u0026logoColor=white)](https://www.linkedin.com/in/madhurima-rawat/) \u0026nbsp; \u0026nbsp;\n\u003ca href =\"mailto:rawatmadhurima@gmail.com\"\u003e\u003cimg src=\"https://github.com/madhurimarawat/Machine-Learning-Using-Python/assets/105432776/b6a0873a-e961-42c0-8fbf-ab65828c961a\" height=35 width=30 title=\"Mail Illustration\" alt=\"Mail Illustration📫\" \u003e \u003c/a\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhurimarawat%2Fobject-oriented-programming-with-c-plus-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadhurimarawat%2Fobject-oriented-programming-with-c-plus-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhurimarawat%2Fobject-oriented-programming-with-c-plus-plus/lists"}