What is Object-Oriented Programming (OOP)?
복습용 저장
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.
Know the top Java OOPs interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Know the top Java OOPs interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Search a question to view the answer.
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class BankAccount {
private double balance;
// other methods and fields
}
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class Animal {
/* properties and methods */
}
class Dog extends Animal { /* additional methods and properties */ }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
void drawShape(Shape s) {
/* method implementation */
}
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
super.display();
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
final int MAX_VALUE = 100;
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
abstract class Shape { /* abstract methods */ }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
public void setName(String name) { this.name = name; }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
static int count = 0;
static void increment() { count++; }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class Car {
Engine engine;
// other properties and methods
}
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
interface Printable { void print(); }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class Parent {
final void display() { /* method implementation */ }
}
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
int add(int a, int b) {
/* method implementation */
}
double add(double a, double b) { /* method implementation */ }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
if (obj instanceof MyClass) { /* do something */ }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class Animal { void makeSound() { /* method implementation */ } }
class Dog extends Animal { void makeSound() { /* overridden method implementation */ } }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class Car { Car() { /* constructor code */ } }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class SubClass extends SuperClass { SubClass() { super(); /* other constructor code */ } }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class MyClass { MyClass(int x) { this(); /* other constructor code */ }
MyClass() { /* default constructor code */ } }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class Singleton { private static Singleton instance = new Singleton();
private Singleton() {}
public static Singleton getInstance() { return instance; } }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
abstract class Shape { abstract void draw(); }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
void myMethod() throws IOException { /* method code */ }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
try { /* code that might throw an exception */ }
catch (Exception e) { /* handle the exception */ }
finally { /* code that always executes */ }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
StringBuilder sb = new StringBuilder().append("Hello").append(",").append(" World");
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class MyClass { /* methods and fields */ }
// implicitly extends Object class
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class MyClass implements Cloneable { /* methods and fields */
public Object clone() throws CloneNotSupportedException { return super.clone(); } }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
class Parent { static void display() { /* method implementation */ } }
class Child extends Parent { static void display() { /* hiding method implementation */ } }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.