Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

OOPs perguntas e respostas de entrevista

Pergunta 16. Explain the concept of multiple inheritance.

Multiple inheritance allows a class to inherit properties and behaviors from more than one superclass. Some languages support it directly, while others provide alternatives like interfaces.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 17. What is a friend class in C++?

In C++, a friend class is a class that is not a part of the class hierarchy but is granted access to the private and protected members of another class.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 18. What is the SOLID principle in OOP?

SOLID is an acronym for five design principles in OOP: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion. These principles aim to make software designs more understandable, flexible, and maintainable.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 19. What is a virtual function?

A virtual function is a function in a base class that is declared using the 'virtual' keyword and can be overridden by a derived class. It enables dynamic method binding and polymorphism.

Example:

class Shape {
  virtual calculateArea() = 0;
}

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 20. What is an abstract method?

An abstract method is a method declared in an abstract class or an interface that has no implementation in the base class. Subclasses must provide an implementation for abstract methods.

Example:

abstract class Printer {
  abstract print();
}

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.