TutorMe homepage
Subjects
PRICING
COURSES
SIGN IN
Start Free Trial
Sphelele Nkosinathi Xolani Z.
iOS and C# developer with Java Backgorund
Tutor Satisfaction Guarantee
Java Programming
TutorMe
Question:

What is the difference between an interface and an abstract class?

Sphelele Nkosinathi Xolani Z.
Answer:

Interfaces are 100% abstract because all its methods are abstract. A method is abstract if it does not have an implementation. Interface methods are implicitly abstract and public (no need for the keywords 'public and 'abstract') and all its variables are constants (i.e 'static final') implicitly. Since Java does not allow classes to extend two or more other classes, interfaces are used to achieve this. Abstract classes are marked using the keyword 'abstract' and they cannot be instantiated. If any class has a method marked as 'abstract' then the class has to be marked 'abstract' as well and abstract classes can have other methods that are not abstract and variables that are not constants. Any class that extends an abstract class or implements an interface has to provide an implementation for all the abstract methods or declare them abstract again.

iOS Programming
TutorMe
Question:

Differentiate between a static cell and a dynamic prototype cell of a UITableView.

Sphelele Nkosinathi Xolani Z.
Answer:

A static cell is a cell that displays the same information, usually hard-coded, whenever the UITableView is loaded. For example, the settings app of the iPhone uses a lot of static cells in its UITableView to present information that shorter and doesn't change all the time. A prototype cell displays information that is dynamically loaded using the UITableViewDataSource. One cell is designed and will be re-used by all rows of the UITableView. An example of this is the contact list in the iPhone which is longer and can change when you add or remove a contact and when you scroll up and down the prototype cell is re-used to give the rows the same look and feel.

C Sharp Programming
TutorMe
Question:

Describe the use of the "sealed" keyword.

Sphelele Nkosinathi Xolani Z.
Answer:

the keyword "sealed " when used with classes means the class cannot be subclassed or inherited or extended. Built-in classes like the string class use this keyword, that is why it is not possible to subclass them. When used with a method it means that method cannot be overridden.

Send a message explaining your
needs and Sphelele Nkosinathi Xolani will reply soon.
Contact Sphelele Nkosinathi Xolani
Ready now? Request a lesson.
Start Session
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 Session" 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.