Posts

Showing posts from December, 2023

Object Oriented Programming - JAVA - Object Generation , Data types, Parameters & Arguments

Image
Object Oriented Programming (JAVA) 👽      There are many languages ​​that follow the OOP concept. They all are based on objects.  Java also a programming language that use the OOP concept.  So we have to know, Object generation Method creation Variable creation Data types Parameters & arguments In this blog, we will discuss about object generation, data types and parameters & arguments. Object Generation      An object in the Java programming language is a replica of a certain class, which is known as an instance of a Java class.  A class object's actions and attributes are its fundamental components. When we create an object , we have to follow a structure.  It has 4 characteristics.  class reference variable name 'new' keyword class constructor Data Types Data types specify the different sizes and values that can be stored in the variable. There are two types of data types in java Primitive data types Non primitive data t...

Object Oriented Programming (OOP)

Image
 Object Oriented Programming (OOP)     Object Oriented Programming is a programming concept that is based on Objects. There are many languages ​​that follow the OOP concept.      Previously, code was written continuously in one block. Hundreds of lines of code were in one block. Then, if errors occur while running that program, it is difficult to find out which line and where the error occurs. Even if you go to update the program, it is difficult to find where you need to change because of a large block.     For these reasons, programmers found a way to program the block into parts. The OOP concept was born as a result. Here, the block is broken into pieces based on objects. Some Advantages of OOP programming Troubleshooting is easier with the OOP language Code Reusability Productivity Data Redundancy Code Flexibility Solving problems Security     There are 3 main blocks in OOP concept. An object can be defined as a data field that has ...