Encapsulation
class Hello{
private int a;
public void setA(int a)
{
this.a=a;
//a=b; //if you write int b then it is appicable
}
public int getA()
{
return a;
}
}
public class Encapsulation //features :
//1.Data Hiding
//2.Flexibility
//3.Reusability
//4.Testing code
{
public static void main(String []args)
{
Hello m = new Hello();
m.setA(10);
System.out.println("Number is : "+m.getA());
}
}
Inheritance
import java.lang.*;
//Inheritance
//1.Super...
Saturday, February 26, 2022
OOP Examples of Java (Object-oriented programming)
Posted by Zuhair Ahmed on February 26, 2022 with No comments
Important Finance Terms in Bengali
Posted by Zuhair Ahmed on February 26, 2022 with No comments
AIR: Annual Interest
Rate is the yearly interest percentage you pay based on your average loan
balance. This rate excludes any fees.
APR: Annual Percentage
Rate is the annualized interest rate plus any fees that are a condition of
receiving capital—expressed as a yearly rate.
Assets: Within the
context of a small business loan an asset is something of value, owned by the
borrower, which can be used as collateral by a...
Friday, February 25, 2022
Sorting Techniques
Posted by Zuhair Ahmed on February 25, 2022 with No comments
An algorithm is thus a sequence of computational steps that transform the input into output. Sorting is the basic and most common computational problem. Allocating scarce resources is the most beneficial way. The learning of Algorithms is basically finding the efficient way to solve problems. Sorting is a classical and important algorithmic problem. Some types of techniques are given below:Bubble Sort: It compares adjacent numbers in pairs....
Wednesday, February 16, 2022
Computer Graphics Basic (With Code)
Posted by Zuhair Ahmed on February 16, 2022 with No comments
A pixel is one of the many tiny dots that make up the
representation of a picture in a computer's memory.
Computer graphics can be created as either raster or vector
images
1.
Raster Image - Pixel Based
2.
Vector Image - Mathematical Based
Raster image drawbacks –
·
Dpi(dots...