Tag

#oop

Member Data and Function

June 10, 2021

Member Data and Function Variables which are declared inside class are called data members Data members can be either private or public Similarly, functions declared inside class is…

What is encapsulation? Learn encapsulation in JAVA

March 28, 2021

Introduction of Encapsulation Besides inheritance, polymorphism and abstraction, encapsulation is one of fundamental OOP concept. mechanism of wrapping up data under single unit this is process ehere code…

How to create an object from Class?

March 28, 2021

To create object in OOP, there are three steps. Step 1: Declaration object type and variable Declare a variable with variable name Declare object type Step 2: Instantiation…

References and Primitive Data Types

March 28, 2021

Two types of entities are identified by JAVA Primitive Objects Primitive Data Types in JAVA most basic types of data 8 primitive data types They have fixed size…

Class and Objects in Java

March 28, 2021

Class user-defined blueprint in OOP a common set of properties are represented by class To create a class, you need to use the keyword class Example:Class named “Test”…