TCCI Computer Coaching
Recursion is a method of solving a problem where the solution depends on solutions to smaller instances of the same problem. Such problems can generally be solved by iteration, but this needs to identify and index the smaller instances at programming time. Most computer programming languages support recursion by allowing a function to call itself […]
Abstract means something, which is in thoughts but not it exists in reality. It is like that we know that what should be done, but we don’t know how it would be done. Take an example, there is a ‘Shape’ class which contains a method ‘area()’ but we cannot implement area() method here as we […]
Python Constructors A constructor is a special type of method (function) which is used to initialize the instance members of the class. 2 Types of Constructor 1.parameterized 2. non-parameterized Constructor definition executes when we create object of the class. Constructors also verify that there are enough resources for the object to perform any start-up task. […]
CSS stands for Cascading Style Sheets. Along with HTML, CSS is fundamental to web design. … CSS is a language used to detail the presentation of a web page’s mark up language (most commonly HTML or XHTML) – such as colors, fonts, and layout. CSS are an important way to control how your Web pages look. It controls colors, typography, and the size and […]
What is Array? Array is collection of more than one element of same type at a same memory location. Declaration Syntax: Data Type arrayname[size]; Here, size represent number elements stored in Array. This size is maximum so, user can enter equal or less elements but nor more than elements. rn[0] rn[3] rn[2] rn[1] All Elements […]
The pass statement . pass_stmt: “pass“. pass is a null operation — when it is executed, nothing happens. Use the pass statement to indicate empty functions , classes and loops. With pass, we indicate a“null” block. Pass can be placed on the same line, or on a separate line. Pass can be used to quickly […]
C++ is an object-oriented programming language. Everything in C++ is associated with classes and objects, along with its attributes and methods. For example: in real life, a car is an object. The car has attributes, such as weight and color, and methods, such as drive and brake. Attributes and methods are basically variables and functions that belongs to the class. These are […]