java oop
Polymorphism,-Overload, Override
Encapsulation, (setter, getter, innerClass)
Inheritance, (extends , Override)
Abstraction (abstract class , interface)
java oop
Polymorphism,-Overload, Override
Encapsulation, (setter, getter, innerClass)
Inheritance, (extends , Override)
Abstraction (abstract class , interface)
java oop
Polymorphism,-Overload, Override
Encapsulation, (setter, getter, innerClass)
Inheritance, (extends , Override)
Abstraction (abstract class , interface)
java oop
public class YourClass {
String example;
int test;
// Constructor
public YourClass(String example, int test) {
this.example = example;
this.test = test;
}
// Method
public void someMethod() {
System.out.println(example);
}
}
// Usage:
// Construct
YourClass exampleObject = new YourClass("Hello World!", 5);
// Execute Method:
exampleObject.someMethod();
java oop
public class YourClass {
String example;
int test;
// Constructor
public YourClass(String example, int test) {
this.example = example;
this.test = test;
}
// Method
public void someMethod() {
System.out.println(example);
}
}
// Usage:
// Construct
YourClass exampleObject = new YourClass("Hello World!", 5);
// Execute Method:
exampleObject.someMethod();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us