Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What is linear search algorithm in Data Structure? tccicomputercoaching.com

What is Search?

Search is a process of finding a value in a list of values. In other words, searching is the process of locating given value position in a list of values.

linear search algo in data structure

Linear Search Algorithm:

Linear Search Algorithm is used to find an element in a list of elements with O(n) time complexity where n is total number of elements in the list. This search process starts comparing of search element with the first element in the list. If both are matching
then results with element found otherwise search element is compared with next element in the list. If both are matched, then the result is “element found”. Otherwise, repeat the same with the next element in the list until search element is compared with last element in the list, if that last element also doesn’t match, then the result is “Element not found in the list”. That means, the search element is compared with element by element in the list.

Engineering student and school student can learn Data Structure at TCCI.

We have experienced and Qualified faculties to teach students.

For more information aboutTCCI and Courses at TCCI.

Call us @ 9825618292

Visit us @ http://www.tccicomputercoaching.com

 

Advertisements
Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Use of This keyword – tccicomputercoaching.com

There can be a lot of usage of this keyword. This is a reference variable that refers to the current object.

Here is given the 6 usage of java this keyword.

  • this can be used to refer current class instance variable.
  • this can be used to invoke current class method (implicitly)
  • this() can be used to invoke current class constructor.
  • this can be passed as an argument in the method call.
  • this can be passed as argument in the constructor call.
  • this can be used to return the current class instance from the method.

use of this keyword

There are main 3 usage of this keyword.

1) this: to refer current class instance variable 

The this keyword can be used to refer current class instance variable. If there is ambiguity between the instance variables and parameters, this keyword resolves the problem of ambiguity.

2. this: to invoke current class method

You may invoke the method of the current class by using the this keyword. If you don’t use the this keyword, compiler automatically adds this keyword while invoking the method. Let’s see the example

3. this() : to invoke current class constructor

The this() constructor call can be used to invoke the current class constructor. It is used to reuse the constructor. In other words, it is used for constructor chaining.

If you are interesting to learn coding then you can join computer course at TCCI in Bopal and Satellite in Ahmedabad.

Call us @ 9825618292

Visit us @ http://www.tccicomputercoaching.com

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What are the advantages of Inheritance in C++? tccicomputercoaching.com

Definition:

Inheritance is mechanism to build a new class from existing one.

Advantage of Inheritance:

One of the key benefits of inheritance is to minimize the amount of duplicate code in an application by sharing common code amongst several subclasses, where equivalent code exists in two related classes. This also tends to result in a better organization of code and smaller, simpler compilation units.

advantage of inheritance in cplus

Inheritance can also make application code more flexible to change because classes that inherit from a common super class can be used interchangeably.

Reusability-> facility to use public methods of base class without rewriting the same.

Extensibility-> extending the base class logic as per business logic of the derived class

Data hiding-> base class can decide to keep some data private so that it cannot be altered by the derived class

Overriding-> With inheritance, we will be able to override the methods of the base class so that meaningful implementation of the base class method can be designed in the derived class.

TCCI is located in Bopal and Satellite in Ahmedabad. We teach all programming Languages to school- Engineering- BCA – MCA students, and Employee of Industry.

For more information about Inheritance in C++.

Call us @ 9825618292

Visit us @ http://www.tccicomputercoaching.com

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Custom Exception in Java – tccicomputercoaching.com

What is Exception?

Abnormal coding is called Exception.

We can use Try-Catch Block to handle Exception.

exception in java

There are two types of Exception handling.

1. Built in Exception

i.e. ArrayoutofboundException , ArithmaticException, FilenotFoundException

2. Custom Exception

Java provides us facility to create our own exceptions which are basically derived classes of Exception.

Here, MyExceptionClass has been extended from derived class of Exception.

Syntax:

Class <MyExceptionClass> extends Exception

{

//statements

}

Syntax:

throw new MyExceptionClass();

To learn more in detail about Exception Handling in Java.

Join TCCI @ Bopal and Satellite in Ahmedabad.

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com/

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

What is pure virtual function in C++? tccicomputercoaching.com

A pure virtual function in C++ is like an “abstract method” in other languages— it forces insatiable subclasses to provide an implementation of the method.

A pure virtual method is an abstract method with no implementation that must be implemented by all subclasses of the owner class. It also refer that the owner class is an abstract class and one can’t instantiate an object of it.

virtual function in cplus

class base

{

virtual void show()=0; // pure virtual function

};

class derived : public base

{

void show()

{

cout<<“child class implement pure virtual function”;

}

};

void main()

{

derived d;

d.show();

getch();

}

Output: class implement pure virtual function

TCCI Computer Coaching Institute teaches C++ in Bopal and Satellite in Ahmedabad.

Online Coaching is available for any person.

Lecture is conducted as per student flexible time.

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com/workshop/

 

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Operators in C Language – Tccicomputercoaching.com

Operator in C Programming Course is symbol that operates on operands or variable.

An arithmetic operator performs mathematical operations such as addition subtraction and multiplication on numerical values.

operators in c

Operator Meaning of Operator
+ addition or unary plus
subtraction or unary minus
* Multiplication
/ Division
% remainder after division( modulo division)


TCCI-Tririd Computer Coaching Institute 
teaches C languages at Bopal and Satellite in Ahmedabad. TCCI have high qualified and experienced faculty who are always ready to help the students in each way.

To learn more about operators

Call us @ 98256 18292.

Visit us @ http://tccicomputercoaching.com/workshop/

Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Why should join computer summer camp at TCCI? – tccicomputercoaching.com

Programming is a basic literacy in the digital age.

Kids are growing up in a very different world than that of their parents. Cell phones, computers, you tube, Netflix, and Face book are embedded in their daily lives. Even toys are digital, and many are programmable, such as Legos and the new-generation Leap Frogs.

Summer-Camps_AT TCCI

In this scenario to aware with computer skill is must.

TCCI organize computer summer camp in Satellite-Ahmedabad.

In this summer camp we teach

Duration: 4 weeks (Monday to Friday) – 1 hour

To join Summer Course at TCCI you can learn Many Things at One place in Short duration.

So, hurry up and Join us.

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com/course/