Karthikeya Boyini has Published 2193 Articles

Object Slicing in C++

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

550 Views

Object slicing is used to describe the situation when you assign an object of a derived class to an instance of a base class. This causes a loss of methods and member variables for the derived class object. This is termed as information being sliced away. For example, class Foo ... Read More

HTML DOM Select Object

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

277 Views

The HTML DOM select Object represent the element of an HTML document.Let’s see how to create select objectSyntaxFollowing is the syntax −document.createElement(“SELECT”);PropertiesFollowing are the properties of select Object −PropertyExplanationautofocusIt returns and modify whether the drop-down list should get focused or not when page load.disabledIt returns and modify whether the ... Read More

HTML DOM Select length Property

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

253 Views

The HTML DOM select length property returns the number of elements inside a drop-down list in an HTML document.SyntaxFollowing is the syntax −object.lengthExampleLet us see an example of HTML DOM select length property − Live Demo    html{       height:100%;    }    body{   ... Read More

Preventing Object Copy in C++

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

287 Views

In C++, when classes are created, we can copy it using some copy constructor or assignment operator. In this section we will see, how to prevent object copy of a class in C++. To prevent object copy, we can follow some rules. These are like below.1. Creating private copy constructor ... Read More

Using Iterations in Python Effectively

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

229 Views

In this article, we will learn about how to implement iterators and their effective implementation in Python 3.x. Or earlier. Let’ s take a look at various methods available in python which implements iterators.Type 1 − Implementation Of While Loop With Known LengthExample Code Live Demogenre = ("Python", "C", "C++", "Java") ... Read More

HTML DOM Select type Property

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

181 Views

The HTML DOM Select type property returns the value of the type attribute of drop-down list in an HTML document.SyntaxFollowing is the syntax −object.typeExampleLet us see an example of HTML DOM select type property − Live Demo    html{       height:100%;    }    body{   ... Read More

Program to find the perimeter of a rhombus using diagonals

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

278 Views

Rhombus is a simple quadrilateral whose four sides all have the same length. And perimeter of rhombus can be found by two methods.Adding all side.Using the diagonalsA quadrilateral has two diagonal and based on the length of diagonals the area and perimeter of the quadrilateral can be found.To find the ... Read More

Program to calculate area and perimeter of Trapezium

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

586 Views

Trapezium is a type of quadrilateral that has at least one pair of side parallel to each other. Area and perimeter of a trapezium can be found using the below formula, Perimeter = sum of all sidesArea = ½ x (sum of the lengths of the parallel sides) x perpendicular ... Read More

Program to calculate the area of an Circle inscribed in a Square

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

697 Views

A circle inscribed in a square is a circle which touches the sides of the circle at its ends. I.e. the diameter of the inscribed circle is equal to the side of the square. The area can be calculated using the formula “((丌/4)*a*a)” where ‘a’ is the length of side ... Read More

Program to calculate area of Circumcircle of an Equilateral Triangle

karthikeya Boyini

karthikeya Boyini

Updated on 30-Jul-2019 22:30:26

233 Views

A circumcircle is a circle that inscribes a regular polygon inside it. The triangle that is inscribed inside a circle is an equilateral triangle. Area of circumcircle of can be found using the following formula, Area of circumcircle = “(a * a * (丌 / 3))”Code Logic, The area of ... Read More

Advertisements