Govinda Sai has Published 74 Articles

Multilevel inheritance in Java

Govinda Sai

Govinda Sai

Updated on 31-Oct-2023 14:34:48

54K+ Views

Multilevel inheritance - A class inherits properties from a class which again has inherits properties.Example Live Democlass Shape {    public void display() {       System.out.println("Inside display");    } } class Rectangle extends Shape {    public void area() {       System.out.println("Inside area");    } } class ... Read More

Passing two dimensional array to a C++ function

Govinda Sai

Govinda Sai

Updated on 06-Sep-2023 13:28:22

40K+ Views

C++ does not allow to pass an entire array as an argument to a function. However, You can pass a pointer to an array by specifying the array's name without an index. There are three ways to pass a 2D array to a function −Specify the size of columns of ... Read More

Why do we use "use strict" in JavaScript?

Govinda Sai

Govinda Sai

Updated on 20-Apr-2022 12:30:05

542 Views

The “use strict” is a directive, which is a literal expression. It was introduced in JavaScript 1.8.5. As the name suggests, “use strict” indicates that the code is to be executed in strict mode.Benefits of using “use strict”It’s easier to write "secure" JavaScript codes.It changes previously accepted "bad syntax" into ... Read More

How to draw a star in HTML5 SVG?

Govinda Sai

Govinda Sai

Updated on 16-Dec-2021 09:34:31

5K+ Views

SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG.To draw a polygon in HTML ... Read More

Listing down various options for input values in HTML5

Govinda Sai

Govinda Sai

Updated on 24-Jun-2020 07:21:22

91 Views

The HTML tag specifies set of options for element. You can try to run the following code to list options for input values in HTML5 −Example           HTML Datalist Tag                                                                                   Try to add any of the tutorial name mentioned above.    

What's the difference between "STL" and "C++ Standard Library"?

Govinda Sai

Govinda Sai

Updated on 24-Jun-2020 06:31:32

1K+ Views

The Standard Template Library (STL) is a software library for the C++ programming language that influenced many parts of the C++ Standard Library. It provides four components called algorithms, containers, functions, and iterators. Note that the term "STL" or "Standard Template Library" does not show up anywhere in the ISO ... Read More

What is The Rule of Three with reference to C++?

Govinda Sai

Govinda Sai

Updated on 23-Jun-2020 13:40:50

87 Views

The Rule of three is a rule of thumb when using C++. This is kind of a good practice rule that says that If your class needs any ofa copy constructor, an assignment operator, or a destructor, defined explicitly, then it is likely to need all three of them.Why is ... Read More

How to set line breaking rules for non-CJK scripts in JavaScript?

Govinda Sai

Govinda Sai

Updated on 23-Jun-2020 11:37:20

151 Views

Use the wordbreak property in JavaScript to set line breaking rules for non-CJK scripts. The following are CJK scripts: C for Chinese, J for Japanese, K for Korean.ExampleYou can try to run the following code to learn how to implement wordbreak property −           ... Read More

How to represent the source code of an object with JavaScript Arrays?

Govinda Sai

Govinda Sai

Updated on 23-Jun-2020 08:28:59

143 Views

JavaScript array toSource() method returns a string representing the source code of the array. This method is supported by Mozilla.ExampleYou can try to run the following code to learn how to represent the source code of an object with JavaScript Arrays −           JavaScript Array toSource ... Read More

How to delete the duplicate values stored in reverse order from MySQL table?

Govinda Sai

Govinda Sai

Updated on 22-Jun-2020 12:35:57

242 Views

To understand this concept, we are using the data from table ‘Details_city’ as follows −mysql> Select * from details_city; +--------+--------+ | City1  | City2  | +--------+--------+ | Delhi  | Nagpur | | Delhi  | Mumbai | | Nagpur | Delhi  | | Katak  | Delhi  | | Delhi  | Katak  | ... Read More

1 2 3 4 5 ... 8 Next
Advertisements