Monday , June 21 2021

JAVA #20 – Method Overloading in Java

Methodoverloading in Java In some programming languages, function overloading or method overloading is the ability to create multiple methods of the same name with different implementations in same class. Syntax public class DataArtist { ... public void draw(String s) { ... } public void draw(int i) { ... } public …

Read More »

JAVA #19 – Access Modifiers and More on Classes

Controlling Access to Members of a Class Access level modifiers determine whether other classes can use a particular field or invoke a particular method. There are two levels of access control: At the top level—public, or package-private (no explicit modifier). At the member level—public, private, protected, or package-private (no explicit modifier). A class may be declared …

Read More »

JAVA #18 – Funtions/Methods in Java

Defining Methods The only required elements of a method declaration are the method’s return type, name, a pair of parentheses, (), and a body between braces, {}. More generally, method declarations have six components, in order: Modifiers—such as public, private, and others you will learn about later. The return type—the …

Read More »

JAVA #17 – Jump Statement (break,continue and label) in Java

The break Statement The break statement has two forms: labeled and unlabeled. You saw the unlabeled form in the previous discussion of the switch statement. You can also use an unlabeled break to terminate a for, while, or do-while loop   package breakcountinue; // Break Statement with Label public class …

Read More »

JAVA #16 – Enum Type in Java

Enum Types An enum type is a special data type that enables for a variable to be a set of predefined constants. The variable must be equal to one of the values that have been predefined for it. Common examples include compass directions (values of NORTH, SOUTH, EAST, and WEST) …

Read More »

C# – Learning some .NET Methods (Maths, Split)

In this lesson we will learn more about Methods. We will learn how to use some maths methods like Sin, Cos, Tan, Round, Pow and Sqrt. We will also learn how to split string in C#.Topics covered: Topics covered: Maths functions: Sin(), Cos(), Tan(), Round(), Pow(), Sqrt() string Split() static void …

Read More »

Phoneblocks: A modular phone

Phoneblocks: A modular phone It all started when someone’s camera broke down and there were no means to fix it. Dave Hakkens started thinking about how consumer electronics could be designed in a way that would make them easier to repair and easy to upgrade.  For example, your mobile’s camera not …

Read More »