Enable contrast version

Tutor profile: Rajat S.

Inactive
Rajat S.
Certified Math and Programming Tutor
Tutor Satisfaction Guarantee

Questions

Subject: Java Programming

TutorMe
Question:

What is an abstract class? How abstract classes are similar or different in Java from C++?

Inactive
Rajat S.
Answer:

Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods. Like C++, in Java, an instance of an abstract class cannot be created, we can have references of abstract class type though. Like C++, an abstract class can contain constructors in Java. And a constructor of abstract class is called when an instance of a inherited class is created In Java, we can have an abstract class without any abstract method. This allows us to create classes that cannot be instantiated, but can only be inherited. Abstract classes can also have final methods (methods that cannot be overridden). For example, the following program compiles and runs fine.

Subject: Databases

TutorMe
Question:

What is a Trigger?

Inactive
Rajat S.
Answer:

A Trigger is a code that associated with insert, update or delete operations. The code is executed automatically whenever the associated query is executed on a table. Triggers can be useful to maintain integrity in database.

Subject: C++ Programming

TutorMe
Question:

What are virtual functions

Inactive
Rajat S.
Answer:

Virtual functions are used with inheritance, they are called according to the type of object pointed or referred, not according to the type of pointer or reference. In other words, virtual functions are resolved late, at runtime. Virtual keyword is used to make a function virtual. Following things are necessary to write a C++ program with runtime polymorphism (use of virtual functions) 1) A base class and a derived class. 2) A function with same name in base class and derived class. 3) A pointer or reference of base class type pointing or referring to an object of derived class.

Contact tutor

Send a message explaining your
needs and Rajat will reply soon.
Contact Rajat

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.