Tag: oop

Masters of Computer Science, Object Oriented Programming

Objects and Arrays in JAVA | Array of Objects in JAVA

Objects and Arrays If we beed single object to store in program, we have variable. And, if we have numbers of objects, we need to create array of objects It …...

Read More →

Masters of Computer Science, Object Oriented Programming

Member Data and Function

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 called member …...

Read More →

Masters of Computer Science, Object Oriented Programming

OBJECT ORIENTED PROGRAMMING ( OOP )USING JAVA – MCS Microsyllabus

Introduction to OOP Introduction to OO: Classes and Objects Comparison between structured programming and OOP Declaring objects Member data and functions Encapsulation Constructor, destructor and finalize() method Chain of constructor …...

Read More →

Masters of Computer Science, Object Oriented Programming

How Constructor in JAVA works? Learn with a simple example

Constructor Special method to initialize the object When object of the class is created, constructor is called Can be used to set initial value of attribute in object Constructor is …...

Read More →

Masters of Computer Science, Object Oriented Programming

Constructor in JAVA.

Learn every details of Constructor in JAVA

Read More →

Masters of Computer Science, Object Oriented Programming

What is encapsulation? Learn encapsulation in JAVA

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 and data …...

Read More →

Masters of Computer Science, Object Oriented Programming

How to create an object from Class?

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 using keyword …...

Read More →

Masters of Computer Science, Object Oriented Programming

Structured Programming Vs Object-Oriented Programming – OOP

Structured Programming  Object Oriented Programming Focuses on process/ logical structure and then data required for that process. Focuses on data. Difficult to modify and reuse Easy to modify and reuse code Also …...

Read More →

Masters of Computer Science, Object Oriented Programming

References and Primitive Data Types

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 They are …...

Read More →

Masters of Computer Science, Object Oriented Programming

Class and Objects in Java

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” is created …...

Read More →
Close