Skip to content

Instantly share code, notes, and snippets.

View naivedeveloper95's full-sized avatar
🎯
Focusing

Satyam Suman naivedeveloper95

🎯
Focusing
  • Wind River Systems
  • Bangalore
View GitHub Profile
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html>
package SatyamCorp.company;
/**
* Created by SatyamCorp on 07-Mar-17.
*/
public class DeluxeBurgers extends Hamburgers{
public DeluxeBurgers() {
super("Deluxe","Fleshy",14.57, "Fluffy Wheat Bread");
super.AddHamburgerAdditional1("Coke",5.67);
@naivedeveloper95
naivedeveloper95 / Main.java
Created February 22, 2017 10:24
Another example for Composition
package SatyamCorp.company;
public class Main {
public static void main(String[] args) {
// write your code here
Wall wall1 = new Wall("left","red");
Wall wall2 = new Wall("Right","yellow");
Wall wall3 = new Wall("West","green");
Wall wall4 = new Wall("East","grey");
@naivedeveloper95
naivedeveloper95 / company_Case.java
Created February 21, 2017 05:02
example for Composition
package SatyamCorp.company;
/**
* Created by SatyamCorp on 21-Feb-17.
*/
public class Case {
private String Model;
private String Manufacturer;
private String PowerSupply;