Posts

Showing posts from August, 2022

Object Oriented Programming in Java

    Object Oriented Programming in Java Java  Introduction: What is Java? Java is a popular programming language, created in 1995. It is owned by Oracle, and more than  3 billion  devices run Java. It is used for: Mobile applications (specially Android apps) Desktop applications Web applications Web servers and application servers Games Database connection And much, much more! Why Use Java? Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.) It is one of the most popular programming language in the world It is easy to learn and simple to use It is open-source and free It is secure, fast and powerful It has a huge community support (tens of millions of developers) Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs As Java is close to  C++ , it makes it easy for programmers to switch to Java or vice versa

Object Oriented Programming in C++

         Object Oriented Programming in C++ Object-oriented programming – As the name suggests uses objects  in programming. Object-oriented programming aims to implement real-world entities like inheritance, hiding,abstraction,encapsulation, polymorphism , etc in programming. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function. Importance in c++ language:             Class Objects Encapsulation Abstraction Polymorphism Inheritance Dynamic binding Message passing             Class :                       Class is the collection of similar objects.                    The building block of C++ that leads to Object-Oriented programming is a Class. It is a user-defined data type, which...