Friday, January 27, 2017
food class || show ,adding new item qyt , selling
using oops concept
Labels:
Java Basic,
OPPS,
জাভা বেসিক
Tuesday, January 24, 2017
Saturday, January 21, 2017
Thursday, January 19, 2017
Sunday, January 15, 2017
inheritance in java
Inheritance in java is a mechanism in which one object acquires all the properties and behaviors of parent object.
The class which inherits the properties of other is known as subclass (derived class, child class) and the class whose properties are inherited is known as superclass (base class, parent class).
Inheritance represents the IS-A relationship, also known as parent-child relationship.
Example of Single Inheritance
Example of Multilevel Inheritance
Example of Heirarchical Inheritance
Labels:
Java Basic,
OPPS,
জাভা বেসিক
Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object. Any Java object that can pass more than one IS-A test is considered to be polymorphic
There are two types of polymorphism in java: compile time polymorphism and runtime polymorphism. We can perform polymorphism in java by method overloading and method overriding.
Example of method overloading
Example of method overriding
Labels:
Java Basic,
OPPS,
জাভা বেসিক
Thursday, January 12, 2017
Tuesday, January 10, 2017
Java Object-Oriented Programming
Introduction to OOP :
What Is an Object?
An object is a software bundle of related state and behavior. Software objects are often used to model the real-world objects that you find in everyday life.
An object is a software bundle of related state and behavior. Software objects are often used to model the real-world objects that you find in everyday life.
What Is a Class?
A class is a blueprint or prototype from which objects are created.
A class is a blueprint or prototype from which objects are created.
What Is Inheritance?
Inheritance provides a powerful and natural mechanism for organizing and structuring your software.
Inheritance provides a powerful and natural mechanism for organizing and structuring your software.
What Is an Interface?
An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface.
An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface.
What Is a Package?
A package is a namespace for organizing classes and interfaces in a logical manner. Placing your code into packages makes large software projects easier to manage.
A package is a namespace for organizing classes and interfaces in a logical manner. Placing your code into packages makes large software projects easier to manage.
Labels:
Java Basic,
জাভা বেসিক
Subscribe to:
Posts (Atom)