Java is an object-oriented programming language. Which is based on the concept of objects and classes. Java considers everything in this world is an object. And the group of related objects known as classes. In OOP everything is write in terms of classes and objects. Java is famous for its platform independent feature. The same...
Category: Object Oriented Programming
Object Oriented Programming Old Exam Question – First Semester | MCS | Lincoln University College
LINCOLN UNIVERSITY COLLEGE EXAMINATION PAPER FACULTY: COMPUTER SCIENCE AND MULTIMEDIA COURSE: MASTER OF COMPUTER SCIENCE YEAR/ SEMESTER:FIRST YEAR/SEMESTER ONE MODULE TITLE: OBJECT ORIENTED PROGRAMMING CODE: MCS 111 TIME ALLOWED:3 HOURS Instruction to candidates 1. This question paper has THREE (3) Sections. 2. Answer ALL questions in Section A, VSAQ 3. Answer 7 questions out of...
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 stores arrays of objects. Array of object is not object stored in array, but reference of the object is stored. How to create array of...
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 function Data Member Variables are declared in class by using fundamental or derived data types. Thes are data members Fundamental data types are like int,...
Invoking Base Class Constructor in JAVA
Invoking Base Class Constructor To invoke base class constructor , super keyword is used // Java program for demonstration of inheritence class Mcs { // Creating method method1 for class Mcs public void method1() { System.out.println(“mcs”); } } class Oop extends Mcs { // Creating method method2 for class...
Types of Constructor in Java | Chain of Constructor
Know about types of constructor, destructor, finalize method in Java along with the chain of the constructor.
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 Invoking base class constructor Objects and arrays “this” keyword Wrapper classes Objects as parameter INHERITANCE AND POLYMORHISM Super class, sub class, inheritance and member access...
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 public But in java we can create public, private, protected constructor Private constructor : within a class Example: public class ConstructorDemo { int...
Constructor in JAVA.
Learn every details of Constructor in JAVA
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 are wrapped together in single unit its like a capsule, which consists of several components in medicines Java Bean is fully encapsulated class Variables /...





