Skip to content

Instantly share code, notes, and snippets.

View LunaticWolf's full-sized avatar

Yang LunaticWolf

  • DeviantArt
  • V.A Chatswood West NSW,Aus
View GitHub Profile
@LunaticWolf
LunaticWolf / application.java
Created June 23, 2018 08:17
car overriding
import static java.lang.System.*;
import java.util.Scanner;
class vehicle
{
private int noOfWheel;
private int noOfPassenger;
private int model;
private String make;
3-1
part 1
//Banking.java
package com.day3.accountassignment;
import java.util.Scanner;
public class Banking {
/ person
public class Person
{
String name;
int dateOfBirth;
public Person(String name,int dateOfBirth)
{
this.name=name;
public class Employee
{
String name;
int salary;
}
public class Manager extends Employee
{
String department_name;
public class Application {
public static void main(String[] args) {
Student st=new Student(987654321);
st.display();
Hosteller host=new Hosteller("Nirwana", 123, 321654987);
host.display();
}
}
package employee;
public class Employee {
private String EmpID; private String Name; private String Designation; private String ProjectID;
private String PhoneNumber;
public Employee(String empID, String name, String designation,
String projectID, String phoneNumber) {
super();
EmpID = empID;
public class Question6Main {
public static void main(String[] args) {
ElectricalProduct ep=new ElectricalProduct(200, 30, 5, "abc", 123, 2100);
ep.display();
}
//
public class ElectricalProduct extends Product {
package question7;
public class Book {
int bookId;
String title;
String author;
int price=250;
Book() {
}
public class Vehicle {
int vehicle_no;
String model;
String manufacturer;
String color="yellow";
public Vehicle(){
}
public Vehicle(int vehicle_no, String model, String manufacturer, String color) {
//Class Power
package com.day4.q1;
abstract public class power {
private double number;
power(){}
power(double number)
{