Tutorials

Interactive Tracker Boxes #2 - CSS

Submitted by Yorkiebar on

Introduction:

This is the second part of my interactive tracker boxes in HTML, CSS, and jQuery. This part will be covering styling the classes of our elements using CSS3.

Box:

The box class will be the holder of the points/trackers where the user is able to hover their mouse over in order to get responsive information about appropriate content. For this, I am going to do a simple small box with white background, and black border...

Object-Oriented Programming In C++: Friend Function

Submitted by PhoeniciansSy on

Friend Function:

Is a function that: 1. is not a member of a class. 2. has access to the class's private and protected members. 3. is considered as a normal external function that is given special access privileges. 4. is not in the class's scope. 5. is not called using the member-selection operators (. and –>) unless they are members of another class. 6. is declared by the class that is granting access. We can define a friend function anywhere in the class declaration.

Object-Oriented Programming In C++: Objects Composition

Submitted by PhoeniciansSy on
In real-life, complex objects are often built from smaller, simpler objects. You are built from smaller parts: a head, a body, some legs, arms, etc ... This process of building complex objects from simpler ones is called object composition. Composition is used for objects that have/has a relationship to each other. A house has a door, has a roof, has a balcony. C++ allows us to do object composition in a very simple way by using classes as member variables in other classes.

Interactive Tracker Boxes #1 - HTML

Submitted by Yorkiebar on

Introduction:

This tutorial is on how to create an interactive CSS & JavaScript (jQuery) page where the user is able to hover over certain elements of the page in order to uncover more information (such as the Bing.com search page, where you can hover over the boxes on the image to see interesting facts).

HTML:

This is the first part of this tutorial series, in which we will be creating the HTML and starting CSS for the page. We want to have a title and paragraph for each piece of information on the website, so lets create the basic HTML template first...

Toast Notifications in Android Application

Submitted by pavel7_7_7 on
In this tutorial you will find the information about how to use toast notifications in your Android Project. Toast notification is a message that appears in your application window. The size of this notification is exact as needed to show all the information of the message. After it is show, Toast Notification disappears. In the most cases is used to show a short text message. To show the Toast Notification you need to initialize the object of the Toast.

Object-Oriented Programming In C++: Destructor

Submitted by PhoeniciansSy on

Contents:

1. Destructor.

2. When Constructors and Destructors are Called.

Destructor

Is a member function in the class, which has the following characteristics: 1. It has the same name as the class preceded with a tilde '~'. For example, the destructor for class Time is declared: ~Time() 2. It doesn't return any type. 3. It is called when objects are destroyed to release all allocated resources. 4.

Object-Oriented Programming in C++: Constructors

Submitted by PhoeniciansSy on

Contents:

1. Constructors. 2. Default Constructors. 3. Constructors with Arguments. 4. Time Class with Constructors.

Constructors:

Constructor is a member function in the class, which has the following characteristics: 1. It has the same name as the class. 2. It doesn't return any type. 3. It is called every time an instance of a class is created. 3.

Object-Oriented Programming In C++: Overloading and Default Arguments

Submitted by PhoeniciansSy on

Content:

1. Function overloading in C++. 2. Default arguments in c++.

Function Overloading in C++:

We can have multiple definitions for the same function name in the same scope. The definition of the function must differ from each other by the types and/or the number of arguments in the argument list. We can not overload function declarations that differ only by return type. Example: We can define a function called display to print a integer number.