Nikitha N has Published 77 Articles

Overload unary minus operator in C++?

Nikitha N

Nikitha N

Updated on 11-Feb-2020 07:09:40

6K+ Views

The operator keyword declares a function specifying what operator-symbol means when applied to instances of a class. This gives the operator more than one meaning, or "overloads" it. The compiler distinguishes between the different meanings of an operator by examining the types of its operands.The unary operators operate on a ... Read More

What is Casting operators in C++?

Nikitha N

Nikitha N

Updated on 10-Feb-2020 13:29:23

1K+ Views

A cast is a special operator that forces one data type to be converted into another. As an operator, a cast is unary and has the same precedence as any other unary operator.The most general cast supported by most of the C++ compilers is as follows −(type) expressionWhere type is ... Read More

How to compile packages in Java

Nikitha N

Nikitha N

Updated on 04-Feb-2020 10:47:31

4K+ Views

Let us look at an example that creates a package called animals. It is a good practice to use names of packages with lower case letters to avoid any conflicts with the names of classes and interfaces.Following package example contains interface named animals −/* File name : Animal.java */ package ... Read More

Add or subtract space between the letters that make up a word with CSS

Nikitha N

Nikitha N

Updated on 31-Jan-2020 06:01:27

180 Views

To add or subtract space between the letters that make up a word, use the letter-spacing property.ExampleYou can try to run the following code to implement letter-spacing property:                            Asia is a continent.          

Increase or decrease the size of a font with CSS

Nikitha N

Nikitha N

Updated on 30-Jan-2020 10:16:10

511 Views

The font-size property is used to increase or decrease the font size. The font-size property is used to control the size of fonts. Possible values could be xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, size in pixels or in %.                 ... Read More

How can we check the default character sets of all the MySQL databases we have on the server?

Nikitha N

Nikitha N

Updated on 30-Jan-2020 06:21:34

53 Views

The query below will return the name of the database along with the default character set −mysql> SELECT SCHEMA_NAME 'Database', default_character_set_name 'charset' FROM information_schema.SCHEMATA; +--------------------+---------+ | Database           | Charset | +--------------------+---------+ | information_schema | utf8    | | gaurav             ... Read More

How can we insert current year automatically in a YEAR type column of MySQL table?

Nikitha N

Nikitha N

Updated on 28-Jan-2020 12:23:05

411 Views

It can be done by using either CURDATE() or NOW() in MySQL query as follows −mysql> Insert into year1(Year_Copyright) values (CURDATE()); Query OK, 1 row affected, 1 warning (0.06 sec) mysql> Select * from year1; +----------------+ | Year_Copyright | +----------------+ |           2017 | | ... Read More

Implementing tree structure in Sapui5 and restricting parent property

Nikitha N

Nikitha N

Updated on 17-Dec-2019 06:51:18

379 Views

Note that “sap.ui.model.ClientTreeBinding” which is used by TreeTable in JSONModel or XMLModel supports the parameter arrayNames. You need to pass an array of the model property names to create a sublevel. I would suggest to try below:In XML view:      ... In JSON view:treeTable.bindRows({path: '/pathToData', parameters: { arrayNames: ['children'] ... Read More

Properties of SAP ABAP Development Objects

Nikitha N

Nikitha N

Updated on 05-Dec-2019 07:51:37

132 Views

Similar to reflection in JAVA we have RTTS in SAP. RTTS stands for runtime type services. It provides you with ways to retrieve the definitions of variables and lets you create a new variable during program execution. RTTS comprises of two sub-componentsRTTI – Run Time Type IdentificationRTTC – Run Time ... Read More

How to check if a string has a certain piece of text in JavaScript?

Nikitha N

Nikitha N

Updated on 12-Sep-2019 07:21:59

76 Views

The jQuery search() method is used to check whether a string contains a certain text in JavaScript.You can try to run the following code to check whether “Tutorialspoint: Free Video Tutorials” contains the “Free Video” text in JavaScript or not:           JavaScript String search() Method   ... Read More

Advertisements